CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 04-02-2008, 12:15 AM
Shaba's Avatar
Shaba Shaba is offline
Registered User
 
Join Date: Nov 2006
Location: Italy
Posts: 215
Question 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!!!
Reply With Quote
  #2  
Old 04-02-2008, 10:00 AM
John Scheffel's Avatar
John Scheffel John Scheffel is offline
Administrator
 
Join Date: Sep 2002
Location: San Jose, CA
Posts: 1,288
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
Reply With Quote
  #3  
Old 04-02-2008, 02:03 PM
Shaba's Avatar
Shaba Shaba is offline
Registered User
 
Join Date: Nov 2006
Location: Italy
Posts: 215
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! :-|
Reply With Quote
  #4  
Old 04-03-2008, 10:45 AM
Wolfgang's Avatar
Wolfgang Wolfgang is offline
Registered User
 
Join Date: Nov 2002
Location: ... near Sindelfingen near Stuttgart, Germany
Posts: 754
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??
Reply With Quote
  #5  
Old 04-03-2008, 11:07 AM
Shaba's Avatar
Shaba Shaba is offline
Registered User
 
Join Date: Nov 2006
Location: Italy
Posts: 215
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
Reply With Quote
  #6  
Old 04-05-2008, 04:38 AM
Wolfgang's Avatar
Wolfgang Wolfgang is offline
Registered User
 
Join Date: Nov 2002
Location: ... near Sindelfingen near Stuttgart, Germany
Posts: 754
Re: Me10 Inq Dimension

Quote:
Originally Posted by Shaba View Post
I need to add infos PREFIX and POSTFIX at dimension TREAD
The drawing is generated from Annotation.
I still did not understand why not doing so in Annotation. can you give an example (screen shot / tiny mi file?)

It sounds to me that you are normally using Annotation, but doing some specials in Drafting.
Reply With Quote
  #7  
Old 04-05-2008, 06:36 AM
Wolfgang's Avatar
Wolfgang Wolfgang is offline
Registered User
 
Join Date: Nov 2002
Location: ... near Sindelfingen near Stuttgart, Germany
Posts: 754
Lightbulb 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!
Reply With Quote
  #8  
Old 04-06-2008, 01:26 PM
Shaba's Avatar
Shaba Shaba is offline
Registered User
 
Join Date: Nov 2006
Location: Italy
Posts: 215
Re: Me10 Inq Dimension

Quote:
It sounds to me that you are normally using Annotation, but doing some specials in Drafting.
Yes

THNK! Very much for help.
Let me see/study it...

TNX
Shaba
Reply With Quote
  #9  
Old 04-09-2008, 01:22 PM
Shaba's Avatar
Shaba Shaba is offline
Registered User
 
Join Date: Nov 2006
Location: Italy
Posts: 215
Re: Me10 Inq Dimension

I don't understand how it works....
Any suggestion??
TNX
Reply With Quote
  #10  
Old 04-13-2008, 11:55 AM
Shaba's Avatar
Shaba Shaba is offline
Registered User
 
Join Date: Nov 2006
Location: Italy
Posts: 215
Re: Me10 Inq Dimension

I found it!
Now it works!
Now i can make INQ to the 2 entity witch is attached the Dimension
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:13 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.