0% found this document useful (0 votes)
48 views2 pages

Macro For Overall Spool Dimension of A Branch

This macro defines variables and logic to summarize the overall spool dimension of a branch in a PDMS model. It collects branch members, iterates through each, and displays annotation text for the attribute length or bend length at the midpoint position. It also handles displaying the total length at the end of the branch.

Uploaded by

Scribd me
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
0% found this document useful (0 votes)
48 views2 pages

Macro For Overall Spool Dimension of A Branch

This macro defines variables and logic to summarize the overall spool dimension of a branch in a PDMS model. It collects branch members, iterates through each, and displays annotation text for the attribute length or bend length at the midpoint position. It also handles displaying the total length at the end of the branch.

Uploaded by

Scribd me
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
You are on page 1/ 2

MACRO FOR OVERALL SPOOL DIMENSION OF A BRANCH _ PDMS

VAR !MOD MODE

FORW

AID CLEAR ALL


VAR !SEER COLL ALL BRANCH MEM WITH TYPE NEQ 'TUBI' FOR BRANCH

DO !M INDICES !SEER
$!SEER[$!M]

IF (!!CE.SEQ EQ 1)THEN

!ATL = !!CE.ATLE.NINT()

!COP = POS

!SOP = HPOS OF BRAN

!MID = !SOP.MIDPOINT(!COP)

IF (!!CE.ATLE NEQ 0)THEN

AID TEXT '$!ATL' AT $!MID

ENDIF

ELSE

!ATL = !!CE.ATLE.NINT()

!COP = POS

!POP = POS OF PREV

!MID = !COP.MIDPOINT(!POP)

IF (!!CE.ATLE NEQ 0)THEN

AID TEXT '$!ATL' AT $!MID

ENDIF

ENDIF

IF (!!CE.TYPE EQ 'BEND')THEN
!COP = POS

!DAR = RADIUS OF CE

!GNA = ANGLE OF CE

!NEL = ( (!GNA/ 360) * 2 * 3.141592654 * !DAR)

!LEN = !NEL.NINT()

AID TEXT '$!LEN' AT $!COP

ENDIF

ENDDO

NEXT

HANDLE (2,113)

IF (!!CE.LTLE NEQ 0)THEN

!LTL = !!CE.LTLE.NINT()

!COP = POS

!HOP = TPOS OF BRAN

!MID = !HOP.MIDPOINT(!COP)

AID TEXT '$!LTL' AT $!MID

ENDIF

ENDHANDLE

$!MOD

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy