Does the object hold a reference to the document?

Does the object hold a reference to the document?

mdhutchinson
Advisor Advisor
220 Views
2 Replies
Message 1 of 3

Does the object hold a reference to the document?

mdhutchinson
Advisor
Advisor
Does an object (line, insert, circle, polyline etc.) inherrently hold a referenceDoes an object (graphic object like a line, insert, circle, polyline etc.) inherently hold a reference to the dwg from which it came? Is so, how do I access this?
... or do I need to actually capture the dwg name and store in my applications data when the record is initially generated?

Some explanation... I have the start of the application I am working on... presently you can double click in a 'currently open dwgs' list box and activate the selected dwg. I was hoping to have another list box that holds a list of references to a set of blocks found in the dwgs ... I'd like to add functionality for the user to double click a record in the list box, have the code activate the object's parent drawing, and zoom in to the object. Is this possible? ... if so, can someone give me some direction?

to the dwg from which it came?
... or do I need to actually capture the dwg name and store in in my applications data?

Some explanation... I have the start of the appication I am working on... presently you can double click in a list box and activate the selected dwg. I was hoping to have another list box that has references to a set of blocks found in the dwgs... I like to add functionality for the user to double click a record in the list box
What I was hopping to do is to
0 Likes
221 Views
2 Replies
Replies (2)
Message 2 of 3

mdhutchinson
Advisor
Advisor
Sorry, that was a bit rough... was supposed to be:

Does an object (graphic object like a line, insert, circle, polyline etc.) inherently hold a reference to the dwg from which it came? Is so, how do I access this?
... or do I need to actually capture the dwg name and store in my applications data when the record is initially generated?

Some explanation... I have the start of the application I am working on... presently you can double click in a 'currently open dwgs' list box and activate the selected dwg. I was hoping to have another list box that holds a list of references to a set of blocks found in the dwgs ... I'd like to add functionality for the user to double click a record in the list box, have the code activate the object's parent drawing, and zoom in to the object. Is this possible? ... if so, can someone give me some direction?
0 Likes
Message 3 of 3

Anonymous
Not applicable
If you ever used "Object Browser" in Acad VBS IDE, you'd find most objects
in Acad object model have a property "Document". So, yes,
"an object (line, insert, circle, polyline etc.) inherrently hold a
reference" to AcadDocument object, in which it is hosted. AcadBlock and
AcadBlockReference, of course, are among those objects.

wrote in message news:5195866@discussion.autodesk.com...
Does an object (line, insert, circle, polyline etc.) inherrently hold a
referenceDoes an object (graphic object like a line, insert, circle,
polyline etc.) inherently hold a reference to the dwg from which it came? Is
so, how do I access this?
... or do I need to actually capture the dwg name and store in my
applications data when the record is initially generated?

Some explanation... I have the start of the application I am working on...
presently you can double click in a 'currently open dwgs' list box and
activate the selected dwg. I was hoping to have another list box that holds
a list of references to a set of blocks found in the dwgs ... I'd like to
add functionality for the user to double click a record in the list box,
have the code activate the object's parent drawing, and zoom in to the
object. Is this possible? ... if so, can someone give me some direction?

to the dwg from which it came?
... or do I need to actually capture the dwg name and store in in my
applications data?

Some explanation... I have the start of the appication I am working on...
presently you can double click in a list box and activate the selected dwg.
I was hoping to have another list box that has references to a set of blocks
found in the dwgs... I like to add functionality for the user to double
click a record in the list box
What I was hopping to do is to
0 Likes