CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > CoCreate Drafting
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
  #1  
Old 12-19-2008, 05:37 AM
Peter Boks Peter Boks is offline
Registered User
 
Join Date: Oct 2002
Location: Rotterdam, The Netherlands
Posts: 37
How can I use (INQ 39) element unique ID

According to the helpfiles I can retrieve an elements unique ID with INQ_ELEM => INQ 39.
I have tried to use it but I can't get it to work.

I would think that this might work:
INQ_ELEM P1
DELETE (INQ 39)
But it doesn't.

What can I do with it?
Does anybody have an idea?
Reply With Quote
  #2  
Old 12-19-2008, 02:25 PM
John Scheffel's Avatar
John Scheffel John Scheffel is offline
Administrator
 
Join Date: Sep 2002
Location: San Jose, CA
Posts: 1,288
Re: How can I use (INQ 39) element unique ID

Interesting question. I thought there must be some way to select an element using the unique ID but after 20 minutes of looking I couldn't find a way.

If P1 represents the point used to select the element the following might work. You need to replace VPn by the viewport number, usually 1.

DELETE SELECT GLOBAL ELEM PICK_VP_PNT VPn P1 CONFIRM END
__________________
John Scheffel
Reply With Quote
  #3  
Old 12-20-2008, 03:23 AM
Peter Boks Peter Boks is offline
Registered User
 
Join Date: Oct 2002
Location: Rotterdam, The Netherlands
Posts: 37
Re: How can I use (INQ 39) element unique ID

Thanks for your reply John.
However, I was especially interested in the use of INQ 39. At this moment I use the following:
INQ_ELEM P1
DELETE POINTER (INQ 2)
This works fine but in a trace file, directly after POINTER (INQ 2), I read:
WARNING - following number token is a valid elem2d pointer. This is unsafe on Win64. 27306704

Since we will probably move on to 64 bit computers in the future, I thought I'd better use a safe routine in my macros from now on.
This is the main reason why I am interested in INQ 39, a unique element ID.
Reply With Quote
  #4  
Old 01-05-2009, 02:58 AM
Wolfgang's Avatar
Wolfgang Wolfgang is offline
Registered User
 
Join Date: Nov 2002
Location: ... near Sindelfingen near Stuttgart, Germany
Posts: 754
Re: How can I use (INQ 39) element unique ID

Hi Peter,

looks like you are using Release 16.00 already. Right? As usual version in use is quite important information!

Looking to the not protected macros of Annotation module you should use INQ 332. The old INQ 2 returns a number, while the new INQ 332 returns a string. The number of pointers on a 64bit system would have exceeded the capabilities of the macro language.

INQ39 is a really strange thing. I also can not figure out what to do with that value. Rather mystic
Reply With Quote
  #5  
Old 01-05-2009, 03:20 AM
Peter Boks Peter Boks is offline
Registered User
 
Join Date: Oct 2002
Location: Rotterdam, The Netherlands
Posts: 37
Re: How can I use (INQ 39) element unique ID

Hi Wolfgang,

I'm indeed using version 16.00. Should have mentioned that.

Anyway, I'm still puzzled on how to use (INQ 332)
If I use
Code:
DELETE POINTER (VAL (INQ 332))
the result is exactly the same as using
Code:
DELETE POINTER (INQ 2)
Including the errormessage in the tracefile.

Can you please give me an example.

Best regards,
Peter Boks
Reply With Quote
  #6  
Old 01-05-2009, 03:42 AM
Wolfgang's Avatar
Wolfgang Wolfgang is offline
Registered User
 
Join Date: Nov 2002
Location: ... near Sindelfingen near Stuttgart, Germany
Posts: 754
Re: How can I use (INQ 39) element unique ID

Code:
DELETE POINTER (INQ 332)
using 'val' function you read again the number from the string.. therefore the result is the same. (and so the waring). Just use what INQ 332 returns.
Reply With Quote
  #7  
Old 01-05-2009, 03:46 AM
Peter Boks Peter Boks is offline
Registered User
 
Join Date: Oct 2002
Location: Rotterdam, The Netherlands
Posts: 37
Re: How can I use (INQ 39) element unique ID

OK, now it's working.
Thanks Wolfgang
Reply With Quote
  #8  
Old 04-23-2013, 07:40 AM
Friedly's Avatar
Friedly Friedly is offline
Registered User
 
Join Date: May 2012
Location: Belgium
Posts: 76
Re: How can I use (INQ 39) element unique ID

Hello

is anyone here who can tell me in which version of me10 the function
POINTER (INQ 2)
was installed?
Reply With Quote
  #9  
Old 04-24-2013, 03:30 AM
Peter Boks Peter Boks is offline
Registered User
 
Join Date: Oct 2002
Location: Rotterdam, The Netherlands
Posts: 37
Re: How can I use (INQ 39) element unique ID

POINTER is an undocumented keyword.
It was never officially released.
Reply With Quote
  #10  
Old 04-24-2013, 08:55 AM
Friedly's Avatar
Friedly Friedly is offline
Registered User
 
Join Date: May 2012
Location: Belgium
Posts: 76
Smile Re: How can I use (INQ 39) element unique ID

Hello Peter,
I know that.

've Tried to write a macro for a colleague but that does not work
because in v8.7 the command POINTER (INQ 2) is not yet available.
Now i want to know from which version on this command belongs to me10.
In v13 he is present but the other versions between v8.7 and v13 i can not test myself.
I hope that someone has the older versions in use and performs the test for me.

The test is simple.
Draw some lines, commandline INQ_SELECTET_ELEM ALL enter.
Then commandline DELETE POINTER (INQ 2) enter.
If one of the lines is deleted the command works.

If anyone can help, thanks in advance
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 03:31 PM.



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: