Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
We have the scripts in Plant Content already, but they are not being used anywhere:
Create Cable Tray Spec
1. It would make sense to decompile the *.pyc files from the varmain\squareconduitssub folder in
the variants.zip from your ContentFolder (e.g. C:\AutoCAD Plant 3D 2016 Content\CPak
Common). It makes it easier to read the specific design parameters from a variant and gives you
the option to make a custom script based on the existing scripts. You can use freeware python
decompiler to do so.
2. Create new endcode for the cable trays: “CT”. Command in Plant 3d:
Then: “Catalog Templates” → “create new” → give it a name → select metric or imperial →
Category “Fittings” → Subcategory “Tee” → RIGHTclick on “ Tee” → “new”
In this demo I will create one size, but of course you can do many sizes at the same time.
Now,
Before:
After:
7. Now let’s go back to the catalog builder:
Select your XLSX file, now choose between “Save as New” and “Add to Existing”
8. In the Spec Editor you can now edit the catalog part. Set the connections to “CT”. If it is not in
the dropdown, just type it. Also add “Long description (Size)”. Also add the “Matching Pipe OD”
for the three ports, otherwise you cannot save the part.
9. Now you can insert the part into your spec sheet.
If you apply the geometry update to your drawing after updating the support/cable tray spec and
you select all parts including your cable trays and supports, they will be reset to default variables!
To prevent this, the following workflow should be used to break the connection between the 3d
parts and the spec part:
http://in-the-pipes.typepad.com/in_the_pipes/2017/12/sunnyside-up-secrets-in-plant-3d-
201811.html