Bolt Length Macro

I can get a bolt length by typing a command like ' Q P1 BOLT 1 BLENG' at a flange point. However, I am encountering an error in my macro as shown below.

*** Macro****

!sData1 = P1 BOLT BLEN OF $!nBranmem

*** Error Message ****
(2,260) PPoint attribute is not valid in this context
In line 88 of Macro C:\pdmsuser\pdm\pml\[Final]Conlist

Please advise me on how to resolve this issue.

Parents
  • Yes,  i can get a bolt length by inputting the command above at a flange point.

    But, In Macro 

    ==================================


    !nBranMem = CE
    !X = P1 BOLT 1 BLENGTH OF $!nBranMem
    $p $!X
    ===================================

    Error Message like below....

    (2,260) PPoint attribute is not valid in this context
    In line 3 of Macro C:\pdmsuser\pdm\pml\boltlength
    !X = P1 BOLT 1 BLENGTH OF $!nBranMem

  • Where did you get 'Q P1 BOLT 1 BLENG' ?

    I would like to check some documentation (if any) about that.

    In my example BOLT 1 and BOLT 2 return the NUT and WASHER thickness.

    BOLT 3 returns the STUD length.

Reply Children
No Data