Hi Santa123
I did something similar a little while ago.
I wrote the formula using the PartBody as the Object which then automatically
updates when you change size and shape
Look at thread560-474598
MechOT1
You could try removing all the existing References and then re-adding them
I had a similar odd set of errors only on Products & Strings
But this seemed to work
Hi All
Just a little update
I eventually got my issues resolved by deleting and re linking all the References
I.e. all the tlb files from the Program Files ......code\bin folder
Thanks for all the hints 😁👍
Hi Guys
I looked at the references and all seemed ok
I found the vba6.msi and ran the install
But unfortunately neither of these seem to have resolved my issue
I have searched the web and found an article related to a Microsoft Security Patch which affected vba
but it was from way back -...
Similar to thread560-473903
I have had one of my CATVBA Projects stop working with "Compile error: Can't find Project or library"
My code initially highlights the line where I set a String Variable but when I add a Dim statement the code fails
at the Ucase() I have applied to the manual...
Hi All,
Having taken your advice and lots of other guidance from other forums I managed to achieve what I wanted
As it took me quite a while I thought I'd share my final code to assist other with the same requirements
So what did I do ?
1) I created a ParameterSet within the RootParameterSet to...
Hi LucasC (all)
The code above does give me the Mass value.
But I am coding a Starter Model and require Dynamic Update of the Mass as the Design matures
Which is why I was trying to used smartVolume.
I may have to write a separate macro using your code to populate the Mass at the end of the...
Hi LucasC
Thank you for your response.
I was hoping for advise related to how to get the Reference Object value ofthe MainBody (regardless of its actual name) to use in the SmartVolume expression.
But I'll certainly have a play around your suggestion.
Cheers
Ian
Hi All,
I am very inexperienced in scripting and wish to create a formula to populate a Mass parameter using a parameter for Density and the Volume of the MainBody
I have searched the forum (and Google in general) but have not found an example exactly as I require
I have found a reference to...
Hi All
I have downloaded the exe from weagan22 link
and checked I have the .dll linked in CATIA V5 R21 but I get an error message
Failed to run graph tree reordering command
I have also Extracted the full Project Code but only have CATIA Internal VBA and this
does not load the Forms etc...
Hi All
With the help above I managed to manually construct the necessary Strings to create the distance formula
I am now attempting to integrate this technique into larger "existing" macro that asks for a User Selection
of Surface to be used as the Primary Measure Object - a loop provides a...
Thank you once again ItsMyJob your suggestion has steered me to a solution that works
A strange observation I have made is that the GeoSet and Point string can be passed as a pure string
Whereas the GeoSet and Surface seems to need the " ` " (forward quote) symbol building into the string
for...
Further to my recent post - refer to "thread560-433573"
I wish to avoid using SPAWorkBench to return a Distance Measure Value
I also wish to create a loop whereby I Measure between a Surface and a number of Points sequencially
I recorded the manual method and altered it as per the advise in the...
Many thanks itsmyjob
This alteration enabled the function to work correctly
I also have a need to create a Distance Relation between a Surface and a Point
I will attempt to adapt this answer into that solution too
Ian Cuz
Hi everyone
I am trying to create an Parameter & Relation to hold the Area Value of a Fill Surface which can be included
within a loop
I do not want to use the SPAWorkBench measure
I am having trouble getting the Relation.CreateFormula expression to recognize the String I have built manually...