The _ApplyRule part tells Civil 3D how the rule should be applied. This part is where you want to tell the program how to apply the rule. I usually start with an existing rule that is close to what I want to accomplish and then modify it to meet my needs.
The _ValidationRule part tells Civil 3D how it should check to see how the rule is to be checked. If you don't want a warning message to show up in Prospector, just leave the code portion blank.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9EQHoF8T6Olt7l0pxOE7U_GpWDvIQHL27UEltpyfp3w6ElSvEHlJ5yQGU6GOjfZXg-uNVHRT5Rakjovu9W_2kt-LcPFSkCzx_8XA7zjGar7iUV09UIi6i8kDgqdw_38WQMIk/s400/PipeRule+Picture.png)
When you set up the XML file to tell Civil 3D what values to use, you probably want to have the user see the correct number format. Civil 3D uses a numeric code to determine what format the number should be. It is stored in the XML file under the TypeInfo under the Params folder. Type 25 is a percent number, Type 16 is feet or meters. Those are the two types used in the rules, I haven't tried to figure out what the other numbers do, so I can't provide what they do here.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm18UUxI5l8lrLvmrE_UTfgWkVXhJhjQK85SGTnQBD7nk8wicw_gmZsPafTheLVSlXtBTxe8qEktM5J3lP4na2HK-2zmA6zuW18nYTqu5yRjMWbJlMrhPs3htKN3sbdu5dPfw/s400/Params.png)
While this isn't a complete list of steps to create the rule, it should provide a little more insight on how to create your own custom pipe rules.
No comments:
Post a Comment