Pipeobjects, tooltips, and xrefs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have created code for displaying information in Autocad MEP in the tooltips for a pipeobject. To be clear, this is the tooltip that appears when you hover over a entity. The tooltip appears to be working as intended when I am in the drawing with the actual entity. In this case, it is an Autocad MEP pipe object. When I hover over pipeobjects that are in xref drawings, the tooltip doesnt work anymore and it shows the out of the box tooltips.
I am checking to see if the entity under the aperature is a pipe with the following line of code:
If (ent.GetType.Name.ToString = Autodesk.Aec.Building.DatabaseServices.Type.Pipe.ToString) Then
So my first guess would be that the xref pipe isnt in the current database which is why the code isnt working. So how would find the type of entity under the aperature that doesnt care if it is in the current dwg or is a xref?