Navisworks API

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

ActiveX Control properties

194 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,260
Registered: ‎06-12-2011
Message 2 of 5 (168 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 (160 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,260
Registered: ‎06-12-2011
Message 4 of 5 (148 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 (143 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

 


You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community