How to highlight a line in a Block(reference)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
There is a block which contains AcDbLines.
This block is used via a single BRef.
How do I highlight a line? Obviously this function must be called:
Acad::ErrorStatus AcDbEntity::highlight(const AcDbFullSubentPath& subId = kNullSubent, ...
As the object of which highlight is called, I tried both the BRef and the AcDbLine.
As the first parameter I tried both kNullSubent and a subent that I created like this:
AcDbFullSubentPath oMyPath; AcDbObjectIdArray &rObjIds = oMyPath.objectIds(); rObjIds.append(idOfBlockOfBRef); // idBtr2idBRef(idBtr)); rObjIds.append(pEnt->objectId()); AcDbSubentId &rSubentId = oMyPath.subentId(); rSubentId.setType(kEdgeSubentType);
I also tried it without the last two lines.
The results:
BRef + oMyPath: eInvalidInput
BRef + kNullSubent: Complete "Bref" (iow complete block at the correct location) is highlighted.
Line + oMyPath: eInvalidInput
Line + kNullSubent + any mode other than 2D wireframe: Line is highlighted as if the block(ref) would be positioned at 0,0,0
Line + kNullSubent + 2D wireframe: No error result, no visual effect.
So, nothing is like I want (only the single line highlighted at the correct position)
Any ideas?

