Possible to create PressurePartList in API of C3D 2021 and 2022?

Possible to create PressurePartList in API of C3D 2021 and 2022?

Anonymous
Not applicable
364 Views
1 Reply
Message 1 of 2

Possible to create PressurePartList in API of C3D 2021 and 2022?

Anonymous
Not applicable

Hi,

 

It seems that it is possible to read existing PressurePartList in the document and get the PressurePartSize in API.

 

But is it possible to create a new blank PressurePartList and add new parts to the new PressurePartList without using PressurePartSize of existing PressurePartList?

 

It is noted that it has a "AddPart" method in the PressurePartList (http://help.autodesk.com/view/CIV3D/2022/ENU/?guid=843fb32a-a6d1-a390-e6ae-fe0453ca5f4a), but it seems that it is not possible to create new PressurePartSize which to be used in the "AddPart" method.

 

It is glad if anyone could provide me some hints on it.  Thanks.

 

Regards,

Wing8b

365 Views
1 Reply
Reply (1)
Message 2 of 2

Civil3DReminders_com
Mentor
Mentor

No, it is not available in the API. It might be available in an update to 2022. 

If I wanted to solve this I'd create a dummy file with all of the available pressure pipe sizes, fittings, and appurtenances placed in the drawing and then I'd build the list of Part Sizes from it and create a UI for the user. Then I'd use the Part information to create the parts. 

So far I have no desire to do this, so I don't have sample code. I gave up once I saw there wasn't a PressurePartList. 

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni