Author Topic: Creating <Entity name: 0>  (Read 2792 times)

0 Members and 1 Guest are viewing this topic.

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Creating <Entity name: 0>
« on: December 06, 2005, 03:49:04 PM »
I asked this over in the Adesk forums and got no helpful responses. Do any of the resident gurus here have any input? Thanks

In LDD there are commands for adding CurveText. This text is NOT the same as
the ET curve text. When placing labels on curves the curve text is created
with a reference set to the curve it was created for. These text objects
cannot be adjusted for position/rotation. However, when creating a label
that is on a polyline arc the same type reference is NOT stored, instead a
Null reference is placed and the text CAN be repositioned/rotated. Here are
snips of the entity lists of the 2 types:
(100 . "AecDbCurveText") (7 . "L80") (40 . 3.2) (71 . 0) (1 . "Test Above1")
(50 . 0.5) (2 . "") (51 . 0.5) (360 . <Entity name: 400f6508>)
(100 . "AecDbCurveText") (7 . "L80") (40 . 3.2) (71 . 0) (1 . "Test Above2")
(50 . 0.5) (2 . "") (51 . 0.5) (360 . <Entity name: 0>)

My question is this: How can I replace the valid Ename in the first (assoc
360) with an Ename of 0 as is in the second? I've tried just deleting the
(assoc 360) and entmod'ing which appears to work (it returns the revised
list) but a subsequent (entget) shows that the (assoc 360) is unchanged.

LE

  • Guest
Re: Creating <Entity name: 0>
« Reply #1 on: December 06, 2005, 04:10:36 PM »
I asked this over in the Adesk forums and got no helpful responses. Do any of the resident gurus here have any input? Thanks

Not a resident guru..... no idea Jeff.... is that a custom object?

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Re: Creating <Entity name: 0>
« Reply #2 on: December 06, 2005, 04:16:03 PM »
Yes, Luis, it is.

LE

  • Guest
Re: Creating <Entity name: 0>
« Reply #3 on: December 06, 2005, 04:24:54 PM »
Yes, Luis, it is.
For what I know [very little on custom objects] is that they are controlled by the application.... and trying to do an entmod it might not be allowed....

Again no idea....

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Creating <Entity name: 0>
« Reply #4 on: December 06, 2005, 04:35:05 PM »
Mostly tangential info ...

Generally speaking, what I have observed in my travels is that <entity name : 0> corresponds to the document, and it's so it's generally used in an owner context. I recall posting something about this over on the desk's news server and TT disagreeing with me (ownerless objects aslo sport noted ename), so take it with a grain of salt. How to replace? I've no idea, as the ownerid property is generally read-only, tho I've never tried via entmod, so perhaps it's possible.

Edit: Found the discussion.
« Last Edit: December 06, 2005, 04:57:13 PM by MP »
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Dinosaur

  • Guest
Re: Creating <Entity name: 0>
« Reply #5 on: December 06, 2005, 05:17:38 PM »
Some modifications can be made at least in positioning after a curve label has been disassociated from the arc and I think they are also curve text entities.  There might be some observable changes after disassociating a label that may give you a clue.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Creating <Entity name: 0>
« Reply #6 on: December 06, 2005, 06:22:53 PM »
From the 'Hack Department', I tried for a while to create it and gave up after reading several post at AutoDesk that said it could not be created.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Re: Creating <Entity name: 0>
« Reply #7 on: December 06, 2005, 07:06:23 PM »
Thanks Dino, unfortunately I'm unable to get the curve/label to completely dis-associate. LDD thinks they have been since I can no longer delete the label by "Delete Labels". And the <Ename> is still listed in the (entget) list.

Michael, Thanks for that link. Pretty informational thread, I'm not sure how I missed reading that one. Maybe I was actually doing some billable work..... :roll: Anyway, now that I've tried to create this "temporary" object and failed, could you give some guidance? I tried using (entmakex) but it assigns a handle/ename in line with the next available.
Quote from: MP
a menubar object or an xrecord that doesn't have an owner yet
I can't quite grasp HOW this would be done......in activeX and AddXrecord must be fed a valid Dictionary Object (which means to me to be it's owner...)

It would be nice if (handent "0") returned the <Ename: 0>, but it just gives a nil response.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Creating <Entity name: 0>
« Reply #8 on: December 06, 2005, 08:59:25 PM »
I'll try and take a stab at this after supper but you probably already know about than I do. Nonetheless I'll have a peek at it.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst