Navisworks API

Reply
Active Member
nathaniel
Posts: 6
Registered: ‎11-23-2009
Message 1 of 5 (201 Views)

ActiveX Control properties

201 Views, 4 Replies
12-22-2011 02:38 PM

Hi all,

 

 

I would like to set the URLsMaxIcons property in the activeX control. Not sure how to go about doing that. Any help would be much appreciated.

 

N

ADN Support Specialist
xiaodong.liang
Posts: 1,335
Registered: ‎06-12-2011
Message 2 of 5 (175 Views)

Re: ActiveX Control properties

02-13-2012 10:10 PM in reply to: nathaniel

Hi,

 

Have you tried with?

 

NwControl.state.GlobalProperties.URLsMaxIcons  = 3
NwControl.state.URLsEnabled = true

 

Regards,

Xiaodong Liang

Developer Technical Services



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Active Member
nathaniel
Posts: 6
Registered: ‎11-23-2009
Message 3 of 5 (167 Views)

Re: ActiveX Control properties

02-14-2012 06:35 AM in reply to: nathaniel
Thank you for your reply.

This is what I have currently:

 

 

public sub btnLinkOn_Clicked()

	NwControl01.state.URLsEnabled = TRUE
	NwControl01.state.GlobalProperties.URLsMaxIcons = 5

end sub

public sub btnLinkoff_Clicked()

	NwControl01.state.URLsEnabled = FALSE

end sub

 

I have a button to turn the links on and one to turn them off. When I turn them on, they do come on, but all of them turn on. I would Like it if it would only show 5.

any suggestions?
Thanks again.
N

 

 

ADN Support Specialist
xiaodong.liang
Posts: 1,335
Registered: ‎06-12-2011
Message 4 of 5 (155 Views)

Re: ActiveX Control properties

02-15-2012 09:46 PM in reply to: nathaniel

hum... I even found a problem has been logged: URLsEnabled does not work for ActiveX control. The hyperlinks do not show up. I can reproduce it. What version you are testing?

 

My test is:

ACTX_01

Navisworks Integrated Control 9 SDI

8A8F9690-5695-42D5-AD50-6FA695F8B634

C:\Program Files\Autodesk\Navisworks Manage 2012\api\COM\examples\gatehouse.nwd



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Active Member
nathaniel
Posts: 6
Registered: ‎11-23-2009
Message 5 of 5 (150 Views)

Re: ActiveX Control properties

02-16-2012 06:01 AM in reply to: nathaniel

I am using Navisworks Integrated Control 9

C72142DB-2D3B-4051-A74F-06C43FE27241

 

URLs Enabled = TRUE does work for me, but not MAXIcons

 


Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.