Serious Error -Save - Old Versions - Macro Code, DLL and test data attached.

Serious Error -Save - Old Versions - Macro Code, DLL and test data attached.

Anonymous
Not applicable
326 Views
2 Replies
Message 1 of 3

Serious Error -Save - Old Versions - Macro Code, DLL and test data attached.

Anonymous
Not applicable
I am getting the following error when i create an assembly using a macro where i make an assembly using data from a text file and IPT files.

The macro works fine. i.e., it creates the assembly. But, i am unable to save the assembly that is created. It throws up an error message "Serious Error : File D:\vikas misc\To delete\IPT folder\scissors.iam version 1 could not be located at the given path nor at D:\vikas misc\To delete\IPT folder\OldVersions\scissors.0001.iam".

I have attached the source code, the STEP files and the CSV file for recreating the below scenario. Please go through the same and revert with a possible solution at the earliest.

Testcase2.zip contains the STEP files and the CSV file.

After running the macro, the following window appears. Type in the path where the STEP folder exists. Also type in the path of the CSV file and the preservation folder path. In the preservation folder, the IPT files which are converted from STEP files are stored.

e.g., :

STEP file folder Path : - D:\vikas misc\To delete\test case2

Management File path : - D:\vikas misc\To delete\test case2\testCase2Csv.csv

Preservation folder path : - D:\vikas misc\To delete\IPT folder

I would be nice, if any of you could provide the solution at the earliest possible instance.
0 Likes
327 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
I took a quick look at your program but I don't get as far as you get.
Inventor crashes while it's building the assembly. I debugged the crash to
fncSetSubSssyV5Existing but don't have anymore time right now to work on it.
It would take quite a while to figure out your logic to follow the workflow
of your program. I don't know when I'll be able to look at it again. I
have a few projects I need to finish.

The best thing is to try and simplify the problem down to as simple a case
as possible. One issue I did notice in your program is that you create an
instance of Apprentice. I didn't check to see if you actually use it or
not. Apprentice is not supported within an Add-In.
--
Brian Ekins
Autodesk Inventor API
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks Brian for the quick response. I am stil notl able to figure out as to what the problem. If any other developers could take a look at it, it would be nice.

regards,
Vikas
0 Likes