.NET

Reply
Active Contributor
Techno Destructo
Posts: 47
Registered: ‎04-05-2006
Message 1 of 5 (292 Views)

Highlight Entity

292 Views, 4 Replies
06-13-2006 09:31 PM
How do you highlight an object without specifying the "FullSubEntitypath"?
I want to highlight the entire object not sub entities.
Distinguished Contributor
RolandF
Posts: 172
Registered: ‎11-19-2003
Message 2 of 5 (292 Views)

Re: Highlight Entity

06-19-2006 05:25 AM in reply to: Techno Destructo
Object.Highlight()

--
Roland Feletic
Ingenieurbuero A. Pauser Ges.m.b.H.
http://www.pauser.at

hp workstation xw4200, 3GB
quadro fx1400
AutoCAD 2007, 3DSMax 8.0 SP 2
Active Contributor
Techno Destructo
Posts: 47
Registered: ‎04-05-2006
Message 3 of 5 (292 Views)

Re: Highlight Entity

06-19-2006 04:08 PM in reply to: Techno Destructo
Thanks for the reply.
I cannot seem to do what you have specified.
the only Highligh function Ican find in the ObjectARX 2006 document, "arxref.chm" is the following:

virtual Acad::ErrorStatus
highlight(
const AcDbFullSubentPath& subId = kNullSubent,
const Adesk::Boolean highlightAll = false) const;

subId Input AcDbFullSubentPath that identifies the subentity to highlight
highlightAll Input Boolean indicating whether to highlight in all viewports

Now it says "If no AcDbFullSubentPath argument is provided, then the entire entity will be highlighted."
The only thing is, it dosent tell you how you can NOT enter in a FullSubentpath.
Distinguished Contributor
RolandF
Posts: 172
Registered: ‎11-19-2003
Message 4 of 5 (292 Views)

Re: Highlight Entity

06-20-2006 12:49 AM in reply to: Techno Destructo
You can find it in 2007 ;-). Here is a sample for 2006.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Entity tmpEnt = (Entity)myT.GetObject(entid, OpenMode.ForRead);

//highlight the entity

ObjectId[] ids = new ObjectId[1];

ids[0] = entid;

SubentityId index = new SubentityId(SubentityType.Edge, 0);

FullSubentityPath path = new FullSubentityPath(ids, index);

tmpEnt.Highlight(path, true);

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--
Roland Feletic
Ingenieurbuero A. Pauser Ges.m.b.H.
http://www.pauser.at

hp workstation xw4200, 3GB
quadro fx1400
AutoCAD 2007, 3DSMax 8.0 SP 2
Member
night_kinghd
Posts: 4
Registered: ‎05-16-2006
Message 5 of 5 (292 Views)

Re: Highlight Entity

06-23-2006 07:12 PM in reply to: Techno Destructo
Hepl me! do you know to receive some subentitys from entity?
Thanks you very much!

Message was edited by: night_kinghd Message was edited by: night_kinghd
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.