What you probably don’t care to know about ParamOnLine in Plant 3D

by 

April 30, 2021 | All, Industrial and Plant, Plant 3D

Every now and then we get a random urge to answer a question no one asks. Such as when the Fixed Issues for P&ID say “The order of assets in P&ID Line List is based on the direction of the flow now, that is from upstream to downstream”, we feel like diving into figure out what changed. To be fair, I’ve had the urge to resolve this for a while, the recent update provided the excuse. One of the things I enjoy about working with Owen Whitehouse is that when one of us makes a comment about something like this, both of us end up digging into it separately, unaware of the others efforts.

To provide a little context, if you open up the P&ID database (ProcessPower.dcf, I’m using SQLite Expert Personal) to the EngineeringItems table, you’ll see a column ParamOnLine. This is where the story starts…

We found the article on AKN and it helped a little bit, but we needed more info.

https://knowledge.autodesk.com/support/autocad-plant-3d/learn-explore/caas/sfdcarticles/sfdcarticles/AutoCAD-P-ID-Wherefore-is-the-property-ParamOnLine.html

Here’s the are the key take aways. Note that to get the actual coordinates for valves, you would need to use the AutoCAD api to read the position of the linesegments, but if you’re doing that, you could just read the coordinates of the valves directly.

The Integer value is the segment of the line that contains the inline asset. This comes from using the AutoCAD api, where each segment in a polyline has an zero-based index. The indexes are identified with multi-leaders.

The decimal value is a percentage of the overall distance. Because this needs to work both on metric and imperial projects, the developers needed to use a scale factor rather than an exact measurement.

To convert to an actual distance we multiple the scale factor * the overall distance (red dimensions). The distance is measured from start of the segment for the line to the start of the inline asset.

Now that we have that resolved, be sure to stay tuned for our next article that talks through how to migrated shared content from 2021 to 2022.