Hi All,
Platform/Environment: CATIA V5R21, Drafting workbench
Topic: VB script/macro to create leader with attribute link to 3D model attribute
My experience with macro/ scripts: Beginner level
Background:
In the drafting workbench, CATIA offers the ability to create a text leader with link to...
This is great I was able to break down your knowledge pattern, ARM, and UDF to determine my mistakes. I am listing the problems I discovered. Hopefully this will help others trying to learn Knowledge pattern avoid the same pitfalls.
1) One thing I did not realize when creating the UDF you...
No problem, we are all busy. Thanks for your help!
Can you upload a picture of your UDF's spec tree and also the Userfeature Definition box? I am curious how you constructed the UDF. Was the UDF constructed on a flat surface? Did you generate a TYPE or rename your inputs in the definition box...
I found my syntax mistake. I was using an apostrophe (') instead of the accent symbol (`). The knowledge pattern editor is now accepting the code. However when I execute the pattern I get the following 2 errors:
1) No resource with logical name PlaneTangent has been found in the catalog...
I read on another forum that sometimes the code loses its link if it is copied and pasted into the editor. So I manually typed each line of code into the editor and that solved the syntax error on line 4 (see above 5.JPG).
I am now getting a Syntax error on line 12. See attached 6.JPG...
I am using R20, I now have the knowledge type path under options/paramters/knowledge to where I have my type saved, and I also have created the UDF from an new part and body.
To clarify why I think 2 UDF's are required; I am given a solid with complex surface and geometric set of points that...
To simplify the process. I am trying to knowledge pattern 1 UDF at a time.
Here is what I have so far for the (PlaneTangent) UDF which creates a plane tangent to surface at point: (copied and manipulated from a different post from you - Catia V5 - Points to Spheres)
let i(integer)
let...
Ok so at this point I've figured out how to make the feature using 2 separate UDF.
The first UDF (PlaneTangent) has 2 inputs (Surface, Point). The output is a PLANE tangent to that surface at the point
The second UDF (HoleNormal) has 2 inputs (Plane, Point). The output is a HOLE normal to the...
Azrael,
I tried constructing the UDF from a HOLE element on a planer and non-planer surface but it does not accept the HOLE element from the non-planer surface. I keep getting the error message "ERROR IN DEFINITION"
I am still researching/experimenting with Knowledge Pattern but am a little stuck and could use some help.
I created a User Defined Feature (UDF), a HOLE that was created using 2 inputs, a FLAT surface and a point. Once saved into my catalog, I was able to instantiate more HOLE features using...
I am not sure if I completely understand how to use knowledge pattern but it seems that you do need to write a script (ex. For Loop) within the knowledge pattern editor to create your pattern. My computer programming knowledge is very limited therefore I was asking if there was an existing...
thread560-251808
Hi,
I am a beginner with scripts and was wondering.
If I have a complex (non planer) surface with multiple points defined within a geometric set, is there a way to instantiate multiple holes on that complex surface? Similar to user pattern but instead of choosing a sketch as...