Hello
I am trying to make a custom pipe support catalog for Plant3D but facing some issues.
I want to use the following libraries:
All library files are placed in C:\AutoCAD Plant 3D 2021 Content\CPak Common
My script looks as follows:
Solved! Go to Solution.
Solved by matt.worland. Go to Solution.
Hello @KBA9XP4Y
Those warnings can be ignored. If you are using Pylance in VSCode, you will get false warnings. Plant 3D's Python is a subset/altered version of the full Python install, and Pylance doesn't know about all of Plant 3D's code.
You do have an error in your code when creating your boxes. You have an additional parameter that is not part of the Box method.
Works
leg1 = BOX(s, L=profile_width, W=profile_thickness, H=H)
Doesnt Work
leg1 = BOX(s, L=profile_width, W=profile_thickness, H=H, O=(-W/2 + profile_width/2, 0, H/2))
From the help file
BOX defines a box
a call from Python should be like
s=BOX(s, L, W, H)
The parameters means:
s the main object
L the box length
W the box width
H the box height
I don't know what your O parameter is supposed to do, but you will have to do it differently.
Can't find what you're looking for? Ask the community or share your knowledge.