- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I have an issue that I'm hopeful you all can help with. I will start by saying that I'm fairly new to iLogic, (Inventor user for almost 20 years, iLogic about 3 months)
I am trying to resolve an ilogic issue I currently have.
My models are set up as master models and get copy designed regularly and the first part of the part number always changes. This hasn't been a problem up to now. The way the iLogic is set up I use the code below:
oDoc = ThisDoc.FileName(False) oVin = Left(oDoc, InStr(oDoc, "-") -1)
Then I apply oVin as my changeable part number so when I want to pass parameters down from an assembly to part parameters I use
Parameter(oVin & "-123456:1", "HEIGHT") = MASTER_HEIGHT
This works really well.
The problem I have is when I want to add components and add constraints, For example, at the top assembly level I use ilogic to add a boss and I want to apply a constraint between its X Axis and a know axis in one of the other parts. Inventor doesn't like the oVin term
Constraints.AddMate("Mate1", "BOSS:1", "X Axis", oVin & "-Manifold_Block", "BOSS AXIS",
This is the error I get
Unable to cast object of type 'System.String' to type 'Autodesk.iLogic.Types.ComponentArgument'.
Any help would be appreciated
Solved! Go to Solution.