I have two releases, R16 and R25, of catia installed on my workstations. Problem is i want to start, release 16 using scripting.
Only command i know is createobject("CATIA.Application").
But it does not include any version or release name in this.
How can i start a specific catia environment...
I want to create a shaft and add a chamfer on its one edge.
I know the edge on which i want to add chamfer.
So, i only want from user the length of chamfer and edge selected by itself.
Anybody knows how edges can be send to selection without selecting it?
Is There any name method for catia by...
it is working but only when you are working in a nonhybrid part.
I wants to work in hybrid part.
In hybrid part, you can't insert a hybrid body and line Set hybridBody1 = hybridBodies1.Add() gives error.
Is there any idea to deal in hybrid part.
i make a extracted plane in part using scripting and then add it to selection set and use same command.
but didn't work. Is this command works on current selection set.
My program is as follows
Sub CATMain()
Dim partDocument1 As Document
Set partDocument1 = CATIA.ActiveDocument
Dim part1 As...
Can anyone tell me about any function that can be used to isolate plane or surface created using scripting.
I need to isolate a plane in a part so that i can cut and paste it into another in same location without references.
With references it will not be pasted.
Please Give some suggestion..
I have made all the corrections you suggested but still showing error,"method Addnewaxisline failed".
My new programchanged part is as:
Dim Selection1 As selection
Set Selection1 = partDocument1.selection
Dim selection2
Set selection2 = Selection1
Dim...
I have a step product file containing two products 1 & 2.
product1 contains a hole. Now, i want to add a product 3 in which a hole is made concentric with this hole.
i write following program to excess cylinderical hole surface but it gives error.
Can anyone help that how to access this .
Sub...
I want to access properties of section view using scripting like its name ident i.e. F for section F-F and scale (to add it later to text box).
As i couldn't find any method in object tree.method name returns full name.Is there any way to access only ident and scale?
Any suggestion would be helpful
It is working But
if i want to enter the value of color array from user then it is taking in as string even when you enter number so give a error 'type mismatch'. if I make color as double function Putbackground color will give error. how can this be solved.
My program is as below:
Sub...
you are creating object for CATIA application object and i am using directly . what effect does it make on error.
Error remains same. One more thing error comes on line 1 i.e. Sub CATMain().
if it is showing error on sub function how it will execute statements inside function.
I have made this program in VBA and i am getting color value of background but it showing compile error there that"Function or interface marked as restricted or the function uses an automation type not supported in visual basic".Can you give the reason of error??
This is working in CATScript...
I already tried it.But it not select all fillet in given range.Also, don't show how many fillets in the range given .Don.t work with small range like 0.1mm to 2mm fillets (it will not shows fillets upto 1mm). only can be used with simple geometries.
Also, to remove these fillets we have to...
I have a stp file which i imported in Catia V5 R20. I want to find and remove all the fillets in range 1 to 3mm in this file. Is there any tool which can be used to find directly all fillets in considered range as i don't want to measure every fillet.