Plant 3D – Adding Custom Components – Part 1 – Editing in components with Python

This is the first part in a multipart series of adding custom parts to Plant 3D.

In this part, we are focusing on the advantages, parts, and programs we going to need,

 

The reason I am writing these as it’s a bit hard to find some of this information,

Though, before I get into the topic, we need to ask a question or two:

What is the advantage in coding these in?

Why not use the AutoCAD Block option with the Spec Editor?

The answers, Size, Editability ,Flexibility,

By adding in everything as Block or 3D model,

We may significantly increase the size of our project, each one can be in the MB range

most of the time, most of the data that is not even relevant to that project,

We are also then limited by the 3D geometry that has been provided to us.

 

Whereas a script is extremely small, normally a hand full of KB,

It can be multi-functional and parametric.

The major drawback being the time and effort that goes into programming and testing.

 

The programs are divided into two major areas,

.py for pipe components, Nozzles, Supports.

.peqx for .equipment models

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

To edit these, we will need the following:

A text editor –                                   any will do, I use Notepad++

Compression Program –                7-zip or similar

xml editor –                                        currently using XML Notepad though there are many others

Guid is a unique identifier –          https://www.guidgenerator.com/

 

As you noticed, there are two separate areas in the parts,

The next blog will focus on editing the .py files in python.

 

 

Was this helpful?

Thanks for your feedback!

About the Author

SHARE

About the Author

SHARE
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.