Import AnyCAD from Solid Edge and Keep Custom iProperties

Import AnyCAD from Solid Edge and Keep Custom iProperties

ccoomes
Advocate Advocate
331 Views
4 Replies
Message 1 of 5

Import AnyCAD from Solid Edge and Keep Custom iProperties

ccoomes
Advocate
Advocate

Has anyone used iLogic to select a Solid Edge (SE) file, then import it (Referenced, not Converted) with AnyCAD AND keep the custom iProperties?

 

I can open the SE file with iLogic, but it converts the part and keeps the Custom iProperties.

 

When I then use iLogic to add the imported component to a Inventor part, I can reference the SE file BUT it will not bring over the Custom iProperties.  The Custom iProperties are then used for the title, part number through Property mappings, iLogic code etc.

 

We are trying to automate opening SE part files (Over 50k) and creating a referenced IV file and having to do it individually would be a nightmare, and take too long.

0 Likes
332 Views
4 Replies
Replies (4)
Message 2 of 5

WCrihfield
Mentor
Mentor

Hi @ccoomes.  Have you tried starting from an empty Part document, then on the 3D Model tab > Create panel > click the Import tool?  Here is a link to the online help documentation about that specific tool.  It says it depends on the file type as to what options are available.  I am not familiar enough with the Solid Edge files, and do not have any examples.  I think something like this might be possible to simulate using something like the TranslatorAddIn.HasOpenOptions property and the TranslatorAddIn.Open method, but I have not tried it yet myself.  There are a few VBA sample codes at the bottom of that second web page, but I do not think there is one specifically for Solid Edge stuff, or for 'as reference' instead of 'convert model'.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 5

mfantone
Participant
Participant

Hi @ccoomes @WCrihfield 

 

I have an Assembly with an AnyCAD SolidWorks Part in it, All files are up-to-date and no modifications has been made, I stored them in the Vault but whenever I retrieved this two files from the Vault, the Assembly gets dirty right after opening it. Any thoughts on why it is getting modified? I tried to set a break point in OnFileDirty() event to get some information, and based on the Context values, the reason for change is returning '1' (CommandTypesEnum.kShapeEditCmdType = "Commands that can affect the geometry of the model.").

Help would be appreciated.

0 Likes
Message 4 of 5

WCrihfield
Mentor
Mentor

Hi @mfantone.  I do not have Vault, and have never imported a SolidWorks part into an Inventor assembly before to monitor how it acts, so I may not be the best person to figure this out for you.  However, I will help any way I can.  You mentioned using the FileAccessEvents.OnFileDirty event to monitor this change, but only mentioned the value of the one possible item in the 'Context' named 'ReasonsForChange'.  Did you also get anything for the one just called 'Reason'?  It says that one will either return "Update" or "FilesOpened".  Then there is one named "DirtyByRecompute", which is suppose to return a Boolean value.  Did you observe that one also?

I can only assume that when you opened the assembly, it saw that an imported file was being referenced, and when it went to 'initialize' it (partially load it into Inventor's session memory), it may have checked to see if it was the latest versions, or if there had been any updates to it.  In that process, it may have done an update on it, for some reason.  Not sure if that is standard operating procedure for Inventor or not, because this is not a scenario that I encounter a lot myself.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 5 of 5

mfantone
Participant
Participant

Hi @WCrihfield! Thank you for the quick response. Yes, I did get values other than "ReasonForChange".

 

Context.Value["Reason"] = "Update"

Context.Value["DirtyByRecompute"] = false

Context.Value["AffectedFiles"] = string[1] => [0]: ""

 

I was expecting that the Dirty Assembly will be listed in the 'AffectedFiles' but for some reason it only listed an empty string.

0 Likes