Custom Python Scripts for AutoCAD Plant 3D – Case study of tubing fittings – PART 2
After testing the script in PART 1, a geometry is created. Our job now is now publish it into the catalog. Image creation Manually dim all the necessary and changing CAD environment into white background (or any color) Capture the image using an app like PicPick or Cropper to create three images with different sizes:…
Custom Python Scripts for AutoCAD Plant 3D – Case study of tubing fittings – PART 1
Let’s try a simple male connector. First, we’ll grasp a drawing from Swagelok as reference: Coding We import libraris in the header, then define part’s principal dimensions which used to drive the entire model, serving as user inputs: Define the function: As AutoCAD Plant 3D (PLNT3D) only accept a few primitives, we have to being…
Plant3D Database PnPID, GUID vs
The Model-Spec Connection To understand how PnPID works, it’s important to distinguish between its use in the spec file and its use in the project’s 3D model database: As shown in the database diagrams, the SpecRecordID in the project database (for example, in the Flange_PNP view) directly corresponds to the PnPID in the spec database.…