|
|
Thread Tools | Search this Thread | Rating: | Display Modes |
#1
|
|||
|
|||
ME10/Annotation dimension query (Done in CoCreate Drafting 2008)
On ME10/Annotation there aren't instructions/commands/functions to query, in a macro, the prefix, postfix, superfix and subfix of a dimension!
Please. GiorgioL. |
#2
|
||||
|
||||
Re: ME10/Annotation dimension query
Short look into integration kit function index or annotation shows immediately:
(sd-am-inq-dim-fix-texts item) Should be sufficient.
__________________
|
#3
|
|||
|
|||
Re: ME10/Annotation dimension query
You can use the ME10 Commande (Inq xx) in Annotator. For use this, see the (sd-execute-annotator-command :cmd "INQ ...")
|
#4
|
||||
|
||||
Re: ME10/Annotation dimension query (Done - exists already)
I think this may have been changed to "Done" too quickly (I assume by one of our moderators since I did not change it). It seems that an inquire command exists for Annotation, but I cannot find any INQ codes for Drafting/ME10 which return prefix, postfix, superfix and subfix information for a dimension element in a drawing. If anyone knows how to do this in Drafting please post details.
__________________
John Scheffel |
#5
|
||||
|
||||
Re: ME10/Annotation dimension query (Done - exists already)
I added the "Done", but I admit I missed the "ME10" part of the question.
That said, when I look up the documentation on INQ_ENV in OSD, it tells me that inquiry code 17 returns things like "current relative text size of prefix/postfix/superfix in dimension", "current ratio of prefix/postfix/superfix in dimension", and other related data. Does this help? Claus
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
#6
|
|||
|
|||
Re: ME10/Annotation dimension query (Done - exists already)
OK, it's fun playing Sherlock Holmes. I did a trace of what the integration kit Annotation sd-am-inq-dim-fix-texts query is doing in the underlying Drafting session, and discovered their 'trick' for inquiring the fix texts of a particular dimension. Basically this is what they do:
1.) Create a line belonging to the TOP part somewhere out in the far reaches of drawing space. 2.) Put a dimension on that line using current dimension settings. (Steps 1 and 2 are done so they can grab the dimension style settings from this dimension later so as to reset them to the initial conditions; then this line & dim are deleted.) These elements have a special INFO attached ('MARKED_TO_KILL') which is used to select them for deletion at the end of the process. 3.) Do a DA_STYLE_GET on the dimension to be inquired, to set the current default dimension style settings to those pertaining to it. This is what grabs the fixtexts into the current style settings. 4.) INQ_ENV 17 to access some of the current dimension style settings. 5.) INQ 902/903/904/905 to grab the fixtexts. 6.) DA_STYLE_GET on the dummy dimension from step 2 to put the dim style settings back to their prior condition. 7.) Delete the dummy line & dim. An interesting bit of work to get around the lack of a direct inquiry!!! |
#7
|
||||
|
||||
Re: ME10/Annotation dimension query (Done - exists already)
Cool stuff 8-)
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
#8
|
||||
|
||||
Re: ME10/Annotation dimension query
Nice work coroto. I wondered how Annotation was able to inquire this information if it was not available in Drafting since they use the same kernel. Pretty clever, but I wonder why they didn't just add the inquire to Drafting. Two different development teams I guess.
__________________
John Scheffel |
#9
|
|||
|
|||
Re: ME10/Annotation dimension query
Hi Coroto,
thank you a lot for the suggstion. It is not the best solution but it runs and it is better than nothig. Regards. GiorgioL. |
#10
|
||||
|
||||
Re: ME10/Annotation dimension query
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|