.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Object id

28 REPLIES 28
Reply
Message 1 of 29
danny.boy.1
1280 Views, 28 Replies

Object id

Hello

Can someone help me with this issue.

I think that object id is not constant, because after each autocad relaunching it changes.
Is there some way to find unique number or the name of the object?

Best regards
Danijel Ivankovic
28 REPLIES 28
Message 21 of 29
Anonymous
in reply to: danny.boy.1

Tony Tanzillo wrote:

> With a reasonabe amount of programming skill and experience with
> ObjectARX, one can do that without having to attach *any* data to the
> object.

And will that code carry along and fire when someone merges the drawing
data in LT or another AutoCAD workalike?

Terry
Message 22 of 29
Anonymous
in reply to: danny.boy.1

Tony Tanzillo wrote:

> 1 out of 3?

I tire of trying to bring you into the consensus.

Terry
Message 23 of 29
Anonymous
in reply to: danny.boy.1

Tony Tanzillo wrote:

> Most of us are already familar with and tired of that , which
> often results in drawings containing thousands of APPIDS that slow
> down the lookup of any APPID, not to mention slow down saves and
> loads and reading of any XDATA.



One AppID with different string values will suffice.

Terry Edited by: Discussion_Admin on May 29, 2009 10:33 AM
Message 24 of 29
Anonymous
in reply to: danny.boy.1

danny.boy.1 wrote:

> Hello I think XDATA are enough for me.

One last thing, even though I doubt you would have done it. Only create
one AppID name and reuse it with different values.

This system has worked well for me and my users for many years.

Good Luck!

Terry
Message 25 of 29
Brunoneves1
in reply to: danny.boy.1

Hi, Terry.


But using xdata, if you copy the entity in the same drawing, you will have a duplicity problem, wont you ?
Message 26 of 29
Anonymous
in reply to: danny.boy.1

Brunoneves1 wrote:

> But using xdata, if you copy the entity in the same drawing, you will
> have a duplicity problem, wont you ?

Yes, but if you find multiples, compare the handles. The lowest handle
should be the original.

Terry
Message 27 of 29
Anonymous
in reply to: danny.boy.1

{quote}

And will that code carry along and fire when someone merges the drawing
data in LT or another AutoCAD workalike?

{quote}

No, it won't. It also won't work in Microstation, IntelliCAD, or the dozen
or so other apps which the data could be opened and edited with.

But, Yours does not work at all...... period

Your idea doesn't work in AutoCAD and it doesn't work in LT, without
imposing unreasonable restrictions on a user (e.g., they can't copy the
tagged objects, and have to contend with additional 'baggage' data they
don't need to begin with).

Your idea doesn't work because a user can COPY objects with your so-called
'unique' tag attached to them, which results in the 'unique' tag being
duplicated in multiple objects, and because you and your code are clueless
with regards to how to deal with that (yes there is a way to deal with it,
but that requires ObjectARX).

The fact that you seem to think imposing those kind of restrictions on a
user is acceptable, or means that your kludges actually work, only
demonstrates the way you go about things.

You claim these 'work', because you define 'work'
with a footnote that reads something like: 'as long as you don't do things
like COPY, or use any other command that duplicates objects'.

These are not required when using API we
discuss here,

In a nutshell, you use and advocate these , only
becuase you're not able to use the tools that make them unnecessary, and
allows us to do things the right way and without punishing end users by
needlessly burdening them with extra 'baggage' data they don't need, and/or
restricting them from using certain common commands.
.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");


"Terry W. Dotson" wrote in message
news:6190990@discussion.autodesk.com...
Tony Tanzillo wrote:

> With a reasonabe amount of programming skill and experience with
> ObjectARX, one can do that without having to attach *any* data to the
> object.

And will that code carry along and fire when someone merges the drawing
data in LT or another AutoCAD workalike?

Terry Edited by: Discussion_Admin on May 29, 2009 10:27 AM
Message 28 of 29
Anonymous
in reply to: danny.boy.1

If the objects are copied together, and the orignials are then erased, the
handle order is the order they were selected in.



--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");


"Terry W. Dotson" wrote in message
news:6191125@discussion.autodesk.com...
Brunoneves1 wrote:

> But using xdata, if you copy the entity in the same drawing, you will
> have a duplicity problem, wont you ?

Yes, but if you find multiples, compare the handles. The lowest handle
should be the original.

Terry Edited by: Discussion_Admin on May 29, 2009 10:34 AM
Message 29 of 29
RonnieWilkins
in reply to: danny.boy.1

Man, a bit of nostalgia with this thread...

Been just about a decade since watching the Tony vs. Frank threads

8)
Ronnie Wilkins, Jr.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost