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: 

Custom pipe support made from python

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
jeremypatterson
224 Views, 3 Replies

Custom pipe support made from python

So I'm making custom pipe supports for the company I work for and the problem I'm having is that I got the support made and it test fine, until I add it to a catalog.  What is happing I can import the support, in order to make changes in properties manger I have to copy the support for it to work else it removes the model. Is there a way to fix this?

here the code

3 REPLIES 3
Message 2 of 4
quan_hm
in reply to: jeremypatterson

Your code have an issue:

 

    s.setPoint((0.0,0.0,0.0), (0.0,0.0,0.0))

 

 

The direction should not be set to 0,0,0. It should be set in direction of the pipe. So it should be

 

    s.setPoint((0.0,0.0,0.0), (1.0,0.0,0.0))

 

 if the pipe is in X direction comapre to original direction of the support.

And the script name must be the same as the function name so "PBS142.py"

Hoang Minh Quan - Piping design engineer
Autodesk Store for Python Catalog
Message 3 of 4
jeremypatterson
in reply to: quan_hm

Thank you for the help, that fixed it.

Message 4 of 4
quan_hm
in reply to: jeremypatterson

Great, you're welcome. Maybe it's time to mark it as answer :))

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

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

Post to forums  

Technology Administrators


AutoCAD Beta