Display part geometry for mixproof valve (python script component)

Display part geometry for mixproof valve (python script component)

quan_hm
Collaborator Collaborator
884 Views
7 Replies
Message 1 of 8

Display part geometry for mixproof valve (python script component)

quan_hm
Collaborator
Collaborator

I recently create a mixproof vavle using python script and I want to change the orientation of the valve just by input the direction in part Geometry.

GUID-226AC02B-B761-467E-AC56-3D0C3E06044F.png

According to this article: https://knowledge.autodesk.com/support/autocad-plant-3d/learn-explore/caas/CloudHelp/cloudhelp/2018/...  :

 

The Content Iso Symbol Definition must include TYPE=VALVE-MULTIWAY to set level angles in the properties palette. Most spec-based components to not allow you to change dimensions so this is a special case, which is enabled based on the TYPE. 

 

 

I already tried but it didn't show up the part geometry.

02.JPG

I can define custom dimension with PLANTCUSTOMPARTS and insert after that but that's not what I want and the part geometry still didn't show up.

 

Please help me solve the problem.

Hoang Minh Quan - Piping design engineer
Autodesk Store for Python Catalog
0 Likes
Accepted solutions (1)
885 Views
7 Replies
Replies (7)
Message 2 of 8

quan_hm
Collaborator
Collaborator

Update, I tried to set the Component Designation in the spec to "Custom" and "Parametric".

Somes work:

03.JPG

But the valve still dont show the dimensions

04.JPG

Hoang Minh Quan - Piping design engineer
Autodesk Store for Python Catalog
0 Likes
Message 3 of 8

rajendra.prajapat
Advisor
Advisor

@quan_hm still it is not showing using the Component Designation property as custom?

If my reply was helpful, please give a "Kudo" or click the "Accept as Solution" button below (or both).
0 Likes
Message 4 of 8

quan_hm
Collaborator
Collaborator

It's seem that if I set the valve to different class ("coupling" for example) then the part geometry can be preview and dimensions can be edited. Anyone know what's wrong with "valve" class?

02.JPG

03.JPG

Hoang Minh Quan - Piping design engineer
Autodesk Store for Python Catalog
0 Likes
Message 5 of 8

rajendra.prajapat
Advisor
Advisor

@quan_hm please use the class valvebody.

If my reply was helpful, please give a "Kudo" or click the "Accept as Solution" button below (or both).
Message 6 of 8

quan_hm
Collaborator
Collaborator

I Created new valveBody component:

04.JPG

The className in database is also valveBody

06.JPG

But the geometry still didnt show up. Keep in mind that with the class = "valve" the default P3D parametric components is showing good. You have any suggestions? @rajendra.prajapat I'm very appreciated.

07.jpg

Hoang Minh Quan - Piping design engineer
Autodesk Store for Python Catalog
0 Likes
Message 7 of 8

quan_hm
Collaborator
Collaborator
Yes. I tried both "Custom" and "Parametric"
Hoang Minh Quan - Piping design engineer
Autodesk Store for Python Catalog
0 Likes
Message 8 of 8

quan_hm
Collaborator
Collaborator
Accepted solution

I found the solusion. Just named your valve something like CPVF000000_Y with CPVF000000 is the existing default valve (many others name you can choose) and _Y is your custom valve name. The software will understand that this is parametric valve and allow you to edit it.

2.png

Screenshot 2022-06-01 084210.png

Hoang Minh Quan - Piping design engineer
Autodesk Store for Python Catalog