DWF Viewer

Reply
Active Member
vtkegan
Posts: 7
Registered: ‎12-15-2010
Message 1 of 3 (5,625 Views)
Accepted Solution

Design Review API and VB Coding

5625 Views, 2 Replies
12-15-2010 04:40 AM

Hello,

 

I am using the DWF Viewer embedded into a VB Application.  It loads the DWF correctly, and I am trying to just recall the properties of the selected block.  I have tried using the OnSelectObject Event as well as the OnSelectObjectEx event.  One of these returns phandled and the other returns phandled and a PageObjectNode which I don't even see in the API reference guide.

 

Is there a quick way to just pull the selected objects properties into an IAdCollection.  I can parse the properties, but I just don't know how to reference the selected block.

 

Any help is greatly appreciated.

 

Thanks.

Thank you for you question. 

 

You can pull all selected objects using API IAdContent.Object(objectType) by passing parameter "1".

 

  enum ObjectType
  {
    AllPublishedObjects           = 0,   // All objects
    SelectedPublishedObjects = 1,   // All selected objects
    AllMarkupObjects               = 2,   // All markups
    SelectedMarkupObjects    = 3    // All slected markups
  };
 

 

 

Please refer to the ADR API documentation for more information.

 

Any further questions please let me know.

Active Member
vtkegan
Posts: 7
Registered: ‎12-15-2010
Message 2 of 3 (5,621 Views)

Re: Design Review API and VB Coding

12-15-2010 06:26 AM in reply to: vtkegan

I have browsed through many other posts, and I haven't found anything.

 

More Details:

 

I am using the ActiveX control in a VB application.

 

I am trying to get Block properties from the selected block using either the OnSelectObject Event or OnSelectObjectEx.

 

It seems like both of these functions returns nothing to do with the block or object selected.

 

 

Employee
herbert.he
Posts: 338
Registered: ‎03-05-2008
Message 3 of 3 (5,607 Views)

Re: Design Review API and VB Coding

12-15-2010 06:35 PM in reply to: vtkegan

Thank you for you question. 

 

You can pull all selected objects using API IAdContent.Object(objectType) by passing parameter "1".

 

  enum ObjectType
  {
    AllPublishedObjects           = 0,   // All objects
    SelectedPublishedObjects = 1,   // All selected objects
    AllMarkupObjects               = 2,   // All markups
    SelectedMarkupObjects    = 3    // All slected markups
  };
 

 

 

Please refer to the ADR API documentation for more information.

 

Any further questions please let me know.



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!