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

Highlight Entity

4 REPLIES 4
Reply
Message 1 of 5
Techno Destructo
615 Views, 4 Replies

Highlight Entity

How do you highlight an object without specifying the "FullSubEntitypath"?
I want to highlight the entire object not sub entities.
4 REPLIES 4
Message 2 of 5
Anonymous
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
Message 3 of 5

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.
Message 4 of 5
Anonymous
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
Message 5 of 5

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

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