HOW TO GET PARAMETER LENGTH AS PIPE SHAPE DEFAULT WITH PYTHON?

HOW TO GET PARAMETER LENGTH AS PIPE SHAPE DEFAULT WITH PYTHON?

traiduong014969
Collaborator Collaborator
1,056 Views
4 Replies
Message 1 of 5

HOW TO GET PARAMETER LENGTH AS PIPE SHAPE DEFAULT WITH PYTHON?

traiduong014969
Collaborator
Collaborator

Hi all,

Recently, I had created a wire mesh cable tray. Its operation is so good. However, I only change the length cable when I make it into "@Anonymous(Group"Support)" . Now I wanna make it similar pipe properties default that change flexible length pipe . I tried converting it to "@activate(Group"Support)" and it appear in the catalog. But when I add them to spec. I appeared with pipe shape default like the snapshot below:

2. I tried changing the name library import with insert name ''from varmain.pipesub.cpp_util import *" to try it that flexible length pipe as pipe default, but it not working and it has an error notify with cad command.

Someone has the experience, please tell for me. 

Thanks for your support

 

 

traiduong014969_0-1637382011835.png

traiduong014969_1-1637382260273.png

traiduong014969_2-1637382359664.png

 

 

0 Likes
1,057 Views
4 Replies
Replies (4)
Message 2 of 5

rajendra.prajapat
Advisor
Advisor

@traiduong014969 it is not work for custom part, you need to mannuly fill the lenghth in the catalog.

If my reply was helpful, please give a "Kudo" or click the "Accept as Solution" button below (or both).
Message 3 of 5

nghiabt04
Advocate
Advocate

@traiduong014969 ,

Custom parts can not stretch like pipe length, you need to set length in catalog

Message 4 of 5

h_eger
Mentor
Mentor

there are functions that are not supported in P3D Python. One of them is the PIPE function.
Please contact Autodesk.
Only Autodesk has the power to activate this function in Python.

-

If my reply was helpful, please give a "Kudo" or click the "Accept as Solution" button below (or both).

Hartmut Eger
Senior Engineer
Anlagenplanung + Elektotechnik
XING | LinkedIn

EESignature



Message 5 of 5

matt.worland
Advisor
Advisor

I have created a post in the idea section.

https://forums.autodesk.com/t5/autocad-plant-3d-p-id-ideas/create-stretchable-components-from-python...

please upvote to have a chance of getting this into the product.

If my reply was helpful, please give a "Thumbs Up" or "Accept as Solution"
0 Likes