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”);

Leave a Reply