CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > Enhancement Requests

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 3 votes, 3.67 average. Display Modes
  #1  
Old 07-06-2007, 06:51 AM
GiorgioL GiorgioL is offline
Registered User
 
Join Date: Oct 2002
Location: Pordenone (PN) - ITALY
Posts: 78
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.
Reply With Quote
  #2  
Old 07-11-2007, 01:43 PM
Wolfgang's Avatar
Wolfgang Wolfgang is offline
Registered User
 
Join Date: Nov 2002
Location: ... near Sindelfingen near Stuttgart, Germany
Posts: 754
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.
Reply With Quote
  #3  
Old 07-11-2007, 10:56 PM
ofischer ofischer is offline
Registered User
 
Join Date: Jan 2007
Location: France
Posts: 55
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 ...")

Reply With Quote
  #4  
Old 07-12-2007, 08:01 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/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
Reply With Quote
  #5  
Old 07-12-2007, 09:05 AM
clausb's Avatar
clausb clausb is offline
Registered User
 
Join Date: Nov 2002
Posts: 1,168
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/
Reply With Quote
  #6  
Old 07-12-2007, 09:36 AM
coroto coroto is offline
Registered User
 
Join Date: Sep 2003
Location: Santa Rosa, CA
Posts: 75
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!!!
Reply With Quote
  #7  
Old 07-12-2007, 09:51 AM
clausb's Avatar
clausb clausb is offline
Registered User
 
Join Date: Nov 2002
Posts: 1,168
Re: ME10/Annotation dimension query (Done - exists already)

Cool stuff 8-)
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/
Reply With Quote
  #8  
Old 07-12-2007, 03:56 PM
John Scheffel's Avatar
John Scheffel John Scheffel is offline
Administrator
 
Join Date: Sep 2002
Location: San Jose, CA
Posts: 1,288
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
Reply With Quote
  #9  
Old 07-17-2007, 01:08 AM
GiorgioL GiorgioL is offline
Registered User
 
Join Date: Oct 2002
Location: Pordenone (PN) - ITALY
Posts: 78
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.
Reply With Quote
  #10  
Old 07-09-2008, 03:41 AM
Michael Kahle's Avatar
Michael Kahle Michael Kahle is offline
Registered User
 
Join Date: Oct 2002
Posts: 121
Re: ME10/Annotation dimension query

http://www.cocreate2008.com/whatsnew...postfixes.aspx
__________________
Best regards,
Michael

--

Spam goes nospam@ptc.com and spam@postini.com
Reply With Quote
Reply


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

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 07:58 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.
You Rated this Thread: