Create multiple def function the python script

Create multiple def function the python script

traiduong014969
Collaborator Collaborator
362 Views
2 Replies
Message 1 of 3

Create multiple def function the python script

traiduong014969
Collaborator
Collaborator

Hi all, 

In the custom equipment that was created with python. In that, I want to create a multiple "def function". However, have some errors. I tested this working, but only geometry in the first def function woking. you can see a snapshot below.

 Is there any solution for this? 

Thank you for help

traiduong014969_0-1653208652297.png

traiduong014969_1-1653208925997.png

 

 

0 Likes
Accepted solutions (2)
363 Views
2 Replies
Replies (2)
Message 2 of 3

quan_hm
Collaborator
Collaborator
Accepted solution

The main function have to put below @Anonymous, @Anonymous decorator, other funcion above them. Then you can call them in the main function, check out the sample function in the picture.

01.JPG

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

traiduong014969
Collaborator
Collaborator
Accepted solution
Thank you for sharing. It working so good
0 Likes