Custom pipe support made from python

jeremypatterson
Explorer
Explorer

Custom pipe support made from python

jeremypatterson
Explorer
Explorer

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

0 Likes
Reply
Accepted solutions (1)
331 Views
3 Replies
Replies (3)

quan_hm
Collaborator
Collaborator
Accepted solution

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

jeremypatterson
Explorer
Explorer

Thank you for the help, that fixed it.

quan_hm
Collaborator
Collaborator

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

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