AutoCAD Plant 3D Forum
Welcome to Autodesk’s AutoCAD Plant 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Plant 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to combine Valve Body with Python Custom Actuator

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
quan_hm
616 Views, 5 Replies

How to combine Valve Body with Python Custom Actuator

I'm checking this article: https://knowledge.autodesk.com/support/autocad-plant-3d/learn-explore/caas/simplecontent/content/pla...

About how to combine Valve Body with Python Custom Actuator. It's a very detail post but I'm missing some point and glad if someone could shed me some light in this:

 

1. In this file ValveActuatorParameters.xml 

 

<ValveBodyVariant var="cpvmp">

<ValveBodyVariantNum num="600>

<ParameterMap cparam="HA" dparam="L" />

<ParameterMap cparam="DA" dparam="D" />

</ValveBodyVariantNum>

 

 what does cparam and dparam mean and how mapping parameter works?

 

2. At the final step it would need another script: cpvmp501600, that would call 2 scripts, orient actuator, and combine it with the body. So after I have this script how does I use it with the Spec Editor? the valve body now is cpvmp501000 or cpvmp501600?

 

I've contacted the author but seem he is busy at the moment so I'm reaching for help in this post, thank you for reading.

Hoang Minh Quan - Piping design engineer
Autodesk Store for Python Catalog
5 REPLIES 5
Message 2 of 6
h_eger
in reply to: quan_hm

Dear @quan_hm ,

 

Unfortunately it does not work to connect a Pyton Script ValveBody and a Python Script Actuator.
this function is unfortunately not supported by AutoCAD Plant 3D see link.

 

https://in-the-pipes.typepad.com/in_the_pipes/2017/02/index.html 

-

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

Hartmut Eger
Senior Engineer
Anlagenplanung + Elektotechnik
XING | LinkedIn

EESignature



Message 3 of 6
quan_hm
in reply to: quan_hm

Hi @h_eger , a very useful link, can learn a lot from it. 

But I was able to combine custom valve with custom actuator follow the mentioned article. Just a little note for who has the same problem like me is that the metadata for P3D 2023 is located at C:\Program Files\Autodesk\AutoCAD 2023\PLNT3D\ContentScripts\metadata, not in the zip file. 

Hoang Minh Quan - Piping design engineer
Autodesk Store for Python Catalog
Message 4 of 6
st.haLXNHT
in reply to: quan_hm

Hi, minhquanqttb

i tried to do that but it seems missing something in the article. Could you please write some instruction how can you do it successful.

Thanks 

Message 5 of 6
DaveSimmons71
in reply to: quan_hm

Since P3D requires the valve body and the actuator to be separate so it can show actuator orientation on the isometric. The solution which I have come up is the build the valve & actuator as a single python script and then apply a small/simple handle actuator which would graphically be hidden inside the valve/actuator graphic but allow the program to work properly without any trickery or programmatic assistance,

Message 6 of 6
st.haLXNHT
in reply to: DaveSimmons71

That's a good ideal. Thank for your advice 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report