#1
|
||||
|
||||
Me10 Inq Dimension
I have a DIM_LINE that is attached at 2 lines.
How can i inquire the 2 lines? I need it to see if this 2 lines have a certain infos (in my case 'DOCU_THREAD_LIN') TNX!!! |
#2
|
||||
|
||||
Re: Me10 Inq Dimension
I don't believe that such a INQ exists. You can find all the documented INQs for a dimension from Help, Program Ref Guide. Find INQ_ELEM in the left frame then search for "if element type = DIM_LINE" in the right frame. There are some undocumented INQ functions but I don't know where to get info on them.
It appears that you can inquire the endpoints and attach points of the dimension line, but not the lines that were selected. I'm not sure if the dimension is actually associated with the lines selected. More likely it is associated with the vertex on the ends of the lines. Code:
| if element type = DIM_LINE | | = DIM_RADIUS | | = DIM_DIAMETER | | = DIM_ARC | | = DIM_ANGLE | | = DIM_CHAIN | | = DIM_DATUM_SHORT | | = DIM_DATUM_LONG | | = DIM_COORD | | = DIM_CHAMFER | | = DIM_TAN | |.........................................................................| | | 3 | dimension value | | | | length unit : <mm> | | | | angle unit : <degree> | | | 4 | upper tolerance value | | | | length unit : <mm> | | | | angle unit : <degree> | | | 5 | lower tolerance value | | | | length unit : <mm> | | | | angle unit : <degree> | | | 6 | main or second dimension value edited | | | | edited = 1, not edited = 0 | | | 7 | upper tolerance value edited | | | | edited = 1, not edited = 0 | | | 8 | lower tolerance value edited | | | | edited = 1, not edited = 0 | | | 11 | valid flag for end point of first | | | | extension line | | | | visible = 1, not visible = 0 | | | 12 | valid flag for end point of second | | | | extension line | | | | visible = 1, not visible = 0 | | | 16 | valid flag for begin point of first | | | | extension line | | | | visible = 1, not visible = 0 | | | 17 | valid flag for begin point of second | | | | extension line | | | | visible = 1, not visible = 0 | | | 18 | angle if orientation is INCLINED | | | 19 | has dimension leader line? | | | | yes = 1, no = 0 | | | 22 | valid flag for location of hidden | | | | zero point | | | | has hidden zero point = 1, | | | | does not have hidden zero point = 0 | | | 23 | 1, if INQ 109 is used; otherwise 0 | | | 24 | 1, if INQ 110 is used; otherwise 0 | | | 25 | dimtext rotation angle | | | 26 | number of left stagger lines | | | | (used for 1100-1102) | | | 27 | number of right stagger lines | | | | (used for 1103-1105) | | | 101 | dimtext center point | | | 102 | begin point of dimension line | | | 103 | end point of dimension line | | | 104 | end point of first extension line | | | 105 | end point of second extension line | | | 106 | begin point of first extension line | | | 107 | begin point of second extension line | | | 108 | location of hidden zero point | | | 109 | begin attach point on geometry | | | 110 | end attach point on geometry | | | 112 | direction vector of dimension text | | | 302 | main dimension upper tolerance text | | | 303 | main dimension lower tolerance text | | | 304 | second dimension upper tolerance text | | | 305 | second dimension lower tolerance text | | | 306 | main dimension value text | | | 307 | second dimension value text | | | 310 | string format of dimension main value | | | 311 | string format of dimension secondary | | | | value | | | | the previous two strings are in the | | | | form used by DIM_FORMAT | | | 601 | orientation of dimension: one of | | | | qualifiers PARALLEL, HORIZONTAL, | | | | VERTICAL, PARALLEL_TO_LINE, | | | | PERPEND_TO_LINE or INCLINED | | | 1100 | begin point of first polygon line | | | | of left stagger | | | 1101 | begin point of next polygon line | | | | of left stagger | | | 1102 | end point of polygon line, returned by | | | | INQ 1100/1101 | | | 1103 | begin point of first polygon line | | | | of right stagger | | | 1104 | begin point of next polygon line | | | | of right stagger | | | 1105 | end point of polygon line, returned by | | | | INQ 1103/1104 |
__________________
John Scheffel |
#3
|
||||
|
||||
Re: Me10 Inq Dimension
I know this documentation TNX
But is to poor for me.. I trye to INQ the 2 point of DIM_LINE but i have the problem that more line is on this point. So i can't be sure to point at the attached item of the DIM_LINE Help! :-| |
#4
|
||||
|
||||
Re: Me10 Inq Dimension
Since you mentioned 'DOCU_THREAD_LIN' it might be that you are looking for a solution within Annotation? or for Drafting-standalone??
__________________
|
#5
|
||||
|
||||
Re: Me10 Inq Dimension
I need to add infos PREFIX and POSTFIX at dimension TREAD
The drawing is generated from Annotation. But i use Me10 to add Dimension Because if make some drawing agg. i lost PREFIX and POSTFIX in annotation |
#6
|
||||
|
||||
Re: Me10 Inq Dimension
Quote:
It sounds to me that you are normally using Annotation, but doing some specials in Drafting.
__________________
|
#7
|
||||
|
||||
Re: Me10 Inq Dimension
Good News, Shaba!
I just figured out that the command Annotation is using is also available in Drafting!!! open Drafting online help, goto 'U', display 'Undocumented Keywords' and in 2nd list you'll find: ● DOCU_DEP_ELEM_LTAB have a look to the open source macros of Annotation in <whereOSDis>/Annotation/win directory. In macro am_dim.m, the first appearance of this command might be a good template. In first column of the LTAB the 'pointers' of the lines of the dims are written. The rest you'll figure out yourself. Good Luck!
__________________
|
#8
|
||||
|
||||
Re: Me10 Inq Dimension
Quote:
THNK! Very much for help. Let me see/study it... TNX Shaba |
#9
|
||||
|
||||
Re: Me10 Inq Dimension
I don't understand how it works....
Any suggestion?? TNX |
#10
|
||||
|
||||
Re: Me10 Inq Dimension
I found it!
Now it works! Now i can make INQ to the 2 entity witch is attached the Dimension |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|