Piping Drawn via API is not the correct Outer Diameter (OD) in Plant3d

by Fenton Webb

Issue

Use the sample project CreatePipeline from the Plant 3D 2013 SDK to draw piping in a model. It draws a 6" CS300 line. Next, put in a piece of pipe using the buttons on ribbon.

The pipe drawn through Plant 3D routing is the correct OD. However, the same Pipe drawn using the SDK is the nominal diameter. What is the problem here?

Solution

The managed Pipe entity has a property OuterDiameter that calls into the unmanaged C++ AcPpDb3dPipe::GetOuterDiameter() / AcPpDb3dPipe::SetOuterDiameter(). You have to set this value using the Pipe’s SpecPart and MatchingPipeOD property.

For example:

pipeEntity.OuterDiameter = pipeSpecPart.PropValue(“MatchingPipeOD”);


Comments

One response to “Piping Drawn via API is not the correct Outer Diameter (OD) in Plant3d”

  1. The pipe drawn through Plant 3D routing can auto add bend.how to auto add bend by using SDK.

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading