NOT CREATE CUSTOM SIPHON WITH PYTHON

NOT CREATE CUSTOM SIPHON WITH PYTHON

traiduong014969
Collaborator Collaborator
553 Views
5 Replies
Message 1 of 6

NOT CREATE CUSTOM SIPHON WITH PYTHON

traiduong014969
Collaborator
Collaborator

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!

 

 

0 Likes
Accepted solutions (1)
554 Views
5 Replies
Replies (5)
Message 2 of 6

phantri.bl
Contributor
Contributor

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.

0 Likes
Message 3 of 6

traiduong014969
Collaborator
Collaborator
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)
0 Likes
Message 4 of 6

rajendra.prajapat
Advisor
Advisor

@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

matt.worland
Advisor
Advisor
Accepted solution

@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

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