![]() I also was trying to generate a new inventor layout from the 2d (without a pre-existing 3d file) and I could not get that to work either.Īs far as the BatchSync tool goes, I could not get that to work at all. Then I used the Update Design task to update inventor and when I open the file, the 2d of the asset was rotated, but the 3d model remained the same (see attached image). ![]() I had an existing asset layout and to test I rotated one asset 90deg in AutoCAD. I tried a couple of the Tasks in the Task Scheduler, and the only one that makes since as a sync tool is the "Update Design" task in the Task Scheduler and I could not get it to work. Beyond just stating to use it, there really are no further instructions on how to actually sync the layout. Yes this is what I was trying to follow and the FactoryAsset folder is local as well as the layouts. "Select a Factory Asset instance in the layout")įunction IsFactoryInstance(layoutDoc As Document, occ As ComponentOccurrence, ByRef factoryInstance As IAssetInstance)ĭim instances = .Instance.GetAssetInstances(layoutDoc) SelectionFilterEnum.kAssemblyOccurrenceFilter, MessageBox.Show (partNumber, "Inventor Part Number")įunction GetOccurenceToWorkWith() As ComponentOccurrenceĬomp = ( MessageBox.Show (instanceID, "Factory Instance ID") MessageBox.Show("The object you selected is not a Factory Design asset instance", "iLogic sample rule")ĭim instanceID = factoryInstance.InstanceIDĭim partNumber = iProperties.Value(occ.Name, "Project", "Part Number") If (Not IsFactoryInstance(ThisApplication.ActiveDocument, occ, factoryInstance)) Then ![]() Imports .v2ĭim occ As ComponentOccurrence, factoryInstance As IAssetInstance To learn more about iLogic, see Inventor iLogic in the Inventor online Help system. Note: To use this script, you need to be familiar with iLogic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |