- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
What I'm tring to do is to write simple program for exporting given parameter for multiple files.
Fist thing is that I use iLogic Part Batch Tool 2015.v.1.4.ipt that I found on the forum.
Next I'm adding new rule that should find the parameter "PL" (pipe length) and make it exported. It looks like this:
Dim oDoc As PartDocument oDoc = ThisApplication.ActiveEditDocument Dim oCompDef As PartComponentDefinition oCompDef = oDoc.ComponentDefinition ' Get a reference to the parameter controlling the thickness. Dim oParam As Parameter oParam = oCompDef.PL oParam.ExposedAsProperty = True ' oParam.CustomPropertyFormat.Precision = CustomPropertyPrecisionEnum.kThreeDecimalPlacesPrecision oParam.CustomPropertyFormat.ShowTrailingZeros = True oParam.CustomPropertyFormat.ShowUnitsString = True oParam.CustomPropertyFormat.Units = "mm"
Unfortunately this is not working, it gives me error that it could not found public member PL
Error in rule: Exporting Parameter_new ***, in document: iLogic Part Batch Tool 2015.v.1.4.ipt
Could not found public member PL for type PartComponentDefinition.
Detailed info looks like this:
System.MissingMemberException: could not found member PL for type PartComponentDefinition.
at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at ThisRule.Main()
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
I need to add that I'm completely new to VBA and iLogic. I did some digging and experimenting but errors getting even worse so I need to ask You for help.
Thank you
Rafal
Solved! Go to Solution.