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: 

Creating custom pipe supports with Elevation change

13 REPLIES 13
SOLVED
Reply
Message 1 of 14
kelt707
3572 Views, 13 Replies

Creating custom pipe supports with Elevation change

I have created a custom pipe support from a 3D block for the Pipe Supports Spec using the function PLANTPARTCONVERT.
How can I change the length of the support with the function Change Support Elevation, same as all the Pipe Hangers in Plant 3D Supports Catalog.
 
Thanks
13 REPLIES 13
Message 2 of 14
h_eger
in reply to: kelt707

Block-based Plant 3D parametric objects are NOT to be edited.
Please use Plant 3D objects parameter see Fig.

regards
Hartmut

-

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 3 of 14
Scott.Hallmark
in reply to: kelt707

... and if none of the parametric P3D supports will work for you visually, you can always use Python to create your own.  See my blog for instructions on how to do that.  I have created many aux steel supports as well as new Anvil clevis hangers that match our requirements.

** If my reply resolves this issue, please choose Accept Solution **
Scott Hallmark, Design Specialist | Fluor Corporation
Inventor and AutoCAD Certified Professional, Autodesk Certified Instructor | My Plant3D Notes | AU Speaker | ROLL TIDE!
Message 4 of 14
Arun_Kumar_K
in reply to: kelt707

Can u post here the procedure for coding in Python.

Message 5 of 14
shallmark
in reply to: kelt707

http://hallmarkblogautocadpid.blogspot.com/2013/03/python-scripting-oh-how-fun-this-is-now.html

_________________________
Scott Hallmark

Autodesk© Inventor© 2013 Certified Professional
My Plant 3D Notes
ActsOneEight
Message 6 of 14
kelt707
in reply to: kelt707

Thanks, I will try that.

Message 7 of 14
SrPiper
in reply to: Scott.Hallmark

Are your anvil clevis hangers parametric or blocks?

 

I am trying to learn how to create clevis hangers that function like the clevis roller hangers that come with P3D, but with anvil beam clamps, rod/nuts, and anvil fig 260 clevis hangers.

 

anvil has 3d .stp blocks available but I have not checked their dimensional accuracy.

 

thanks

 

Message 8 of 14
Scott.Hallmark
in reply to: SrPiper

They are paramateric in the sense that they adjust to the pipe size and rod height.

** If my reply resolves this issue, please choose Accept Solution **
Scott Hallmark, Design Specialist | Fluor Corporation
Inventor and AutoCAD Certified Professional, Autodesk Certified Instructor | My Plant3D Notes | AU Speaker | ROLL TIDE!
Message 9 of 14
PeterQuinn
in reply to: Scott.Hallmark

I haven't tried this and don't endorse it, but you might check out Lisega's support modeling for Plant 3D: http://www.lisega.de/downloads/licad-for-plant3d-2.html



Peter Quinn
Senior Product Manager
Autodesk, Inc.

Message 10 of 14
howard.gardener
in reply to: shallmark

Hi Scott,

 

I've read your instruction on creating custom python scripts for Plant3D and try to do the same for my projects. In regards to on "Rotated Clamps on Pipe Support" I am not getting the same results as outlined in your instruction and was wondering if you could provide some assistance.

This is my workflow after after adding the rotate ange to the script.

 

on a tool palette:

1. ^C^CPLANTREGISTERCUSTOMSCRIPTS;(startapp "C:/Program Files/Autodesk/AutoCAD Plant 3D 2013 - English/acad.exe");QUIT

2. ^C^C(arxload "PnP3dACPAdapter.arx");

3. ^C^C(TESTACPSCRIPT "CSGB001")

 

when i test the sript I get the following result on the command line and nothing appears.

Command: (TESTACPSCRIPT "CSGB001") <Entity name: 7ffffb43800>

 

I also get this error when i run it in the GUI...

Shell error.JPG

 

Thanks,

 

Howard

 

 

 

Message 11 of 14
Scott.Hallmark
in reply to: kelt707

"when i test the sript I get the following result on the command line and nothing appears.

Command: (TESTACPSCRIPT "CSGB001") <Entity name: 7ffffb43800>"

 

When it says "<Entity name: xxxxx>" that means it did create the item.  Did you zoom extents?  It places it on 0,0,0 in test mode like you are doing.  It *should* be there.

 

As for the other, I am guessing at the issue here...  You should extract out then decompile the CSGB001.PYC file from the Variants.zip file to your C:\AutoCAD Plant 3D 2014 Content\CPak Common\CustomScripts folder.  The decompiled file is now a PY file (not PYC).  Open it in the editor and change the angle value of the clamp:

 

  o4=CSGC002(s, D=D, L=L, W=W, K=K).rotateY(-90).translate((0, 0, 0-(LS/2.0)))  <--- this calls the Clamp PYC file into the CSGB001 script.
  o4.rotateZ(30)  <--- change the angle on this one to 30 or 45!

 

Then save it, run PLANTREGISTERCUSTOMSCRIPTS in P3D and then put the PYC back in the Variants.zip file.  Test it out after that.  If I remember correctly, those were my steps.

 

I am going back to Applied Software (www.asti.com) as a Senior Plant and Mechanical Application Specialist on March 3 so I will be adding much more to my blog in the next few months.

** If my reply resolves this issue, please choose Accept Solution **
Scott Hallmark, Design Specialist | Fluor Corporation
Inventor and AutoCAD Certified Professional, Autodesk Certified Instructor | My Plant3D Notes | AU Speaker | ROLL TIDE!
Message 12 of 14

Thanks for your quick response... i will try your sugestions.

I look forward to following your page for more helpfull tips on python scripting.

 

Thanks again,

Howard

Message 13 of 14
Arun_Kumar_K
in reply to: PeterQuinn

Downloaded the Lisega plugin and installed, and followed the procedure mentioned in that about netload.

 

I can use the command, after the command licad, it prompts me to select the horizontal pipe, after the selection, a 2d sketch generates then it generates an error. Can you provide solution for this?, have you tried this plugin?

Message 14 of 14

an Aux Steel Supports Bundle for Plant 3D is soon to be released from Applied Software!  If you want information on it, email shallmark@asti.comSteel Supports for P3D Bundle_clip.jpg

** If my reply resolves this issue, please choose Accept Solution **
Scott Hallmark, Design Specialist | Fluor Corporation
Inventor and AutoCAD Certified Professional, Autodesk Certified Instructor | My Plant3D Notes | AU Speaker | ROLL TIDE!

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

Post to forums  

Autodesk Design & Make Report

”Boost