Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Ian Cuz

    Relation

    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
  2. Ian Cuz

    CATIA VBA Sudden crash

    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
  3. Ian Cuz

    CATIA VB Project Runtime ERROR

    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 😁👍
  4. Ian Cuz

    CATIA VB Project Runtime ERROR

    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 -...
  5. Ian Cuz

    CATIA VB Project Runtime ERROR

    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...
  6. Ian Cuz

    Creating a formula for Mass = Volume x Density using Parameters

    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...
  7. Ian Cuz

    Creating a formula for Mass = Volume x Density using Parameters

    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...
  8. Ian Cuz

    Creating a formula for Mass = Volume x Density using Parameters

    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
  9. Ian Cuz

    Creating a formula for Mass = Volume x Density using Parameters

    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...
  10. Ian Cuz

    Product reordering in CATIA V5 VBA

    I modified the code line CATIA.StartCommand("Graph tree Reordering") to have Capital Letter 'R' on the word Reordering and the exe now works :-)
  11. Ian Cuz

    Product reordering in CATIA V5 VBA

    Thanks for the explanation
  12. Ian Cuz

    Product reordering in CATIA V5 VBA

    Although I do have English V5 R21 I also get an error running the exe 😣
  13. Ian Cuz

    Product reordering in CATIA V5 VBA

    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...
  14. Ian Cuz

    Measure Distance - Point to Surface

    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...
  15. Ian Cuz

    Measure Distance - Point to Surface

    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...
  16. Ian Cuz

    Measure Distance - Point to Surface

    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...
  17. Ian Cuz

    Measuring Area of a Fill Surface

    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
  18. Ian Cuz

    Measuring Area of a Fill Surface

    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...

Part and Inventory Search