PDMS Macro Convert Nozzle to Primitive

By about Aveva PDMS Software | PDMS Tutorial | PDMS Training | Wednesday May 4th, 2016

PDMS Macro Convert Nozzle to Primitive used to convert type NOZZle element to primitive element, when create a equipment like a package many flange component inside, so we need this pdms macro.

Goto Sitemap to read all Article from PDMSid

For easy create a flange model without measure size of flange, first need create a nozzle type and convert it to primitive.

PDMS Macro Convert Nozzle to Primitive

Convert Nozzle to Primitive

How to use PDMS Macro Convert Nozzle to Primitive :

  1. Drag and drop form file to command line.
  2. Click Convert to create primitive element from selected nozzle.
PDMS Macro Convert Nozzle to Primitive image

PDMS Macro Convert Nozzle to Primitive image

Below is the code of pdms macro or download via download button !!

Form : save a below code to a file

–CHANGE VALUE WITH CURRENT FILE MACRO LOCATION !!
!MACROFOLDERLOCATION = ‘D:\PDMSID\PDMS_MACRO_CONVERT_NOZZLE_TO_PRIMITIVE’
$(
————————————————————————
(C) COPYRIGHT  2016 TO WWW.PDMSID.COM
FILE        CONVNOZPFORM.PDMSID
TYPE        MACRO
GROUP        PDMS MACRO CONVERT NOZZLE TO PRIMITIVE
KEYWORD
MODULE
REPLACES
AUTHOR        ADMIN@PDMSID.COM
CREATED        2016
BY            PDMSID
————————————————————————
$)
KILL !!CONVNOZP
SETUP FORM !!CONVNOZP
TITLE ‘CONVERT NOZZLE – PRIMITIVE’
PATH DOWN
BUTTON .EXPORTIMAGE ‘CONVERT TO PRIMITIVE’ CALL |$M $!MACROFOLDERLOCATION\CONVNOZPCOMM.PDMSID| WIDTH 25
PARAGRAPH .PARA TEXT ‘SUPPORT’
BUTTON .LINK LINKLABEL ‘WWW.PDMSID.COM’ AT XMIN.EXPORTIMAGE+10 YMAX.EXPORTIMAGE+0.2 CALL |SYSCOM ‘START HTTP://WWW.PDMSID.COM’ |
MEMBER .P IS STRING
!THIS.P = !MACROFOLDERLOCATION
EXIT
SHOW !!CONVNOZP

Command : save a below code to a file

NOZZ
VAR !PARA  PARA
VAR !HEI HEI
VAR !POS POS WRT /*
VAR !ORI ORI WRT /*
!ORIDIR = !ORI.ORIENTATION()
!DATA = !PARA.SPLIT()
!ID = !DATA[1]
!FLANOD = !DATA[3]
!FLANTHK = !DATA[4]
!OD = !DATA[5]
!D = !HEI.REAL() / 2
!DF = !FLANTHK.REAL() / 2
!YDIR = !ORIDIR.YDIR().STRING().SPLIT()
!ZDIR = !ORIDIR.ZDIR().STRING().SPLIT()
!XDIR = !ORIDIR.XDIR().STRING().SPLIT()
NEW CYL
DIA $!OD
HEI $!HEI
POS $!POS WRT /*
ORI $!ORI
ROTATE BY 90 ABOUT $!YDIR[1]
BY $!XDIR[1] $!D $!XDIR[2]$!XDIR[3]
NEW NCYL
DIA $!ID
HEI $!HEI
NEW CYL
DIA $!FLANOD
HEI $!FLANTHK
POS $!POS WRT /*
ORI $!ORI WRT /*
ROTATE BY 90 ABOUT $!YDIR[1]
BY $!XDIR[1] $!DF $!XDIR[2]$!XDIR[3]
NEW NCYL
DIA $!ID
HEI $!FLANTHK

OR

Click Download button below to download this macro or click here to see another pdms macro. Please subscribe to blog via email before download.

 

Free – Direct Download

 

One thought on “PDMS Macro Convert Nozzle to Primitive

Leave a Reply

Your email address will not be published. Required fields are marked *