"System.Collections.ArrayList" cannot be converted to type "System.String"

"System.Collections.ArrayList" cannot be converted to type "System.String"

Anonymous
Not applicable
1,057 Views
1 Reply
Message 1 of 2

"System.Collections.ArrayList" cannot be converted to type "System.String"

Anonymous
Not applicable

Hi guys and girls,

 

i got aproblem with rule making.

 

i got the following fail-message:

 

german:

Fehler in Regel: StehendOderDecke in Dokument: 283219_363320.iam

Das Objekt des Typs "System.Collections.ArrayList" kann nicht in Typ "System.String" umgewandelt werden.

 

english(translated by myself):

 

Failure in rule: StehendoderDecke (name of rule) in document 283219_363320.iam.

The object of the type "System.Collections.ArrayList" cannot be converted to type "System.String"

 

the code is:

 

SyntaxEditor Code Snippet

If montage = "Stehend" Then

Component.IsActive(MakePath("283220 - 00 - Grundrahmen Paternoster Hub 550 BA Konzept-1:1", MakePath("283221 - 00 - Paternostereinheit links Hub 550  BA Konzept-1:1", "100070 - 00 - Abdeckkappe 100x100 Set 1011:1"))) = True
Component.IsActive(MakePath("283220 - 00 - Grundrahmen Paternoster Hub 550 BA Konzept-1:1", MakePath("283221 - 00 - Paternostereinheit links Hub 550  BA Konzept-1:1", "100070 - 00 - Abdeckkappe 100x100 Set 1011:2"))) = True
Component.IsActive(MakePath("283220 - 00 - Grundrahmen Paternoster Hub 550 BA Konzept-1:1", MakePath("283240 - 00 - Paternostereinheit rechts Hub 550  BA Konzept-1:1", "100070 - 00 - Abdeckkappe 100x100 Set 1011:1"))) = True
Component.IsActive(MakePath("283220 - 00 - Grundrahmen Paternoster Hub 550 BA Konzept-1:1", MakePath("283240 - 00 - Paternostereinheit rechts Hub 550  BA Konzept-1:1", "100070 - 00 - Abdeckkappe 100x100 Set 1011:2"))) = True

Component.IsActive("285651 - 00 - Deckenmontage - einheit PN:1") = False
Component.IsActive("285651 - 00 - Deckenmontage - einheit PN:2") = False
Component.IsActive("285651 - 00 - Deckenmontage - einheit PN:3") = False
Component.IsActive("285651 - 00 - Deckenmontage - einheit PN:4") = False

Component.IsActive("285609 -  - Verglasung Boden:1") = False


Else

'Haltewinkel Decke + Komponenten aktiv
Component.IsActive("285651 - 00 - Deckenmontage - einheit PN:1") = True
Component.IsActive("285651 - 00 - Deckenmontage - einheit PN:2") = True
Component.IsActive("285651 - 00 - Deckenmontage - einheit PN:3") = True
Component.IsActive("285651 - 00 - Deckenmontage - einheit PN:4") = True

Component.IsActive("285609 -  - Verglasung Boden:1") = True

Component.IsActive(MakePath("283220 - 00 - Grundrahmen Paternoster Hub 550 BA Konzept-1:1", MakePath("283221 - 00 - Paternostereinheit links Hub 550  BA Konzept-1:1", "100070 - 00 - Abdeckkappe 100x100 Set 1011:1"))) = False
Component.IsActive(MakePath("283220 - 00 - Grundrahmen Paternoster Hub 550 BA Konzept-1:1", MakePath("283221 - 00 - Paternostereinheit links Hub 550  BA Konzept-1:1", "100070 - 00 - Abdeckkappe 100x100 Set 1011:2"))) = False
Component.IsActive(MakePath("283220 - 00 - Grundrahmen Paternoster Hub 550 BA Konzept-1:1", MakePath("283240 - 00 - Paternostereinheit rechts Hub 550  BA Konzept-1:1", "100070 - 00 - Abdeckkappe 100x100 Set 1011:1"))) = False
Component.IsActive(MakePath("283220 - 00 - Grundrahmen Paternoster Hub 550 BA Konzept-1:1", MakePath("283240 - 00 - Paternostereinheit rechts Hub 550  BA Konzept-1:1", "100070 - 00 - Abdeckkappe 100x100 Set 1011:2"))) = False

End If

iLogicVb.UpdateWhenDone = True   

It would be perfect if someone can correct or help me!

Best regards,
Daniel

 

0 Likes
1,058 Views
1 Reply
Reply (1)
Message 2 of 2

mdavis22569
Mentor
Mentor

Hallo,

 

 

You might want to try the Customization Forum ....

 

http://forums.autodesk.com/t5/inventor-customization/bd-p/120

 

Best regards,

Michael

 

 


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

0 Likes