Design Review
Welcome to Autodesk’s Design Review Forums. Share your knowledge, ask questions, and explore popular Design Review topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Return Markups via API

1 REPLY 1
Reply
Message 1 of 2
Anonymous
343 Views, 1 Reply

Return Markups via API

In the 2012 ADR API guide it says:

NOTE: The following APIs can return a Collection of Markup objects:

Content.Objects

 

I cannot seem to get this to work via javascript.  

 

The guide also says, for the markup object (to add markups)

This object is instantiated from the IAdMarkup interface which is inherited from IAdObject3. It is part of the AdCommon module.

 

I also cannot get this to work.  Can you please provide some sample Javascript code for calling these objects?  Thank you!

1 REPLY 1
Message 2 of 2
herbert.he
in reply to: Anonymous

Thank you for your question.

 

You can get all markups of current section using the code below.

    var markups = ADViewer.ECompositeViewer.Section.Content.Objects(2); // 2 is to return all Markups

 

Any further question please let me know.



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report