Navisworks API

Navisworks API

Reply
Contributor
gregoryx.robinson
Posts: 15
Registered: ‎07-04-2012
Message 1 of 3 (199 Views)

Automatically appending files by selecting attributes links or Hyperlinks

199 Views, 2 Replies
02-16-2013 05:56 PM

Before I begin the research - I am wondering if it may be possible to call "append" provide it the file with path, from an attribute with is in the model, file, document object model.

i.e. I append (or open) a .dwg containing attributes or huperlinked objects.

I write a command, call, or plugin that prompts me for an object containing the attribute/link. Providing the link is valid, the file is appended.

My code would derive the file and path from the attribute value.

Thanks in advance.

Greg

ADN Support Specialist
xiaodong.liang
Posts: 1,311
Registered: ‎06-12-2011
Message 2 of 3 (181 Views)

Re: Automatically appending files by selecting attributes links or Hyperlinks

02-19-2013 07:06 PM in reply to: gregoryx.robinson

Hi,

 

I am trying to understand your scenario:

 

you have a file (say DWG), in which there is some objects with some attributes or hyperlinks.

 

  1. Either you want to append this DWG by checking the attributes or hyperlink. i.e. if the attributes/hyperlink meets your requirement, the DWG file is appended.
  2. Or you want to append other files which are indicated in the attributes/hyperlink?

 

For 1, you may have to open the DWG and check the attributes or hyperlink, and decide to append it or not.

 

For 2, this depends on your workflow, e.g.

-        You can iterate the attributes/hyperlinks, get the full path of the other files, and append them.

-        You can also check the selected object in OnCurrentSelectionChanged event, get the attributes/hyperlinks, get the full path of the other files, and append them. i.e. when the user selects the object, the appending job is done automatically.



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Contributor
gregoryx.robinson
Posts: 15
Registered: ‎07-04-2012
Message 3 of 3 (177 Views)

Re: Automatically appending files by selecting attributes links or Hyperlinks

02-21-2013 01:57 PM in reply to: xiaodong.liang
Ok, - Now to roll up my sleeves and increment through the steps required... Thanks, Greg Robinson Hensel Phelps Construction Co. Intel Fab 42 Tool Install 480.723. 7722 Direct 480.316.6060 Mobile
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!