Inconsistent units in Schedules

Inconsistent units in Schedules

BenoitE&A
Collaborator Collaborator
401 Views
1 Reply
Message 1 of 2

Inconsistent units in Schedules

BenoitE&A
Collaborator
Collaborator

Hey,

I create a SharedParameter of type ParameterType.YesNo.

Then I want to populate my new parameter with booleans, I therefore use : 

myObject.get_Parameter(myNewParameter.Id).Set()

 

The problem is : there is no option for booleans for Set() available. Only string, integer, double and ElementId.

Ok I can still use an integer to simulate a boolean...

Benoit

 


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
0 Likes
Accepted solutions (1)
402 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Benoit,

 

Thank you for your query.

 

Yes, afaik you have to use the integer overload of the Set method.

 

Sorry about that.

 

I hope this helps.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder