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: 

NOT CREATE CUSTOM SIPHON WITH PYTHON

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
traiduong014969
338 Views, 5 Replies

NOT CREATE CUSTOM SIPHON WITH PYTHON

Hi all, 

I'm trying create a custom siphon. There are shape siphons I tested with "(TESTACPSCRIPT "siphon name")". However there a shape siphon not working. For detail, It has a name is "CPMDD".

This is link to this file : C:\Program Files\Autodesk\AutoCAD 2023\PLNT3D\ContentScripts\metadata\varmain\miscellaneoussub\cpmdsub\cpmddsub

traiduong014969_0-1652577534926.png

traiduong014969_1-1652577575822.png

I want to create this shape. but when I test, it not working.

Someone can help me.

Thank you, 

Have a good day!

 

 

5 REPLIES 5
Message 2 of 6

I think u should input right dimension. If dimension is right but can not creat a shape. U should change some dimension and check one by one dimension. I think the parametric from Autodesk have some mistake, Take care about it.

Message 3 of 6

Yep, I try with some change dimensions, however, It not working.
This is an example of parametric.

o1a = CPMDD(s, D = 40, L = 2000 , H1 = 1000, R2 = 300, E = 80, OF = -1)
Message 4 of 6

@traiduong014969 its generating with default parameter.

 

(testacpscript "CPMDD")Capture.PNG

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

@traiduong014969, It seems to be an issue in 2022 and 2023 after the Python 3 conversion. Testing in 2021 works fine, but both 2022 and 2023 are failing.

If my reply was helpful, please give a "Thumbs Up" or "Accept as Solution"
Message 6 of 6

yep, I tested in P3D 2021. It working, but with the 2023 version, It not working

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

Post to forums  

Autodesk Design & Make Report