Hi I need to create a Camera view in the first quadrant (1.e XY plane with both x and y facing positive direction) with respect to LOCAL COORDINATE i.e new cooordinate system
Any Suggestions will be helpful..
I used the following code but it gives the results wrt to global coordinate doesnt...
How to change the vector of a line.. I tried one script. But it doesnt work and gives error in PutDirection syntax
Here is my code
Sub CATMain()
Dim partDocument1
Set partDocument1 = CATIA.ActiveDocument
Dim part1
Set part1 = partDocument1.Part
Dim hybridShapeFactory1
Set...
Hi itsmyjob
Yea your are right, cant measure the radius of the arc with measurable....that was my problem..
wat is that parameter with formula, can you explain me with example if possible
Thanks
Barath
Hi Ferdo
Not working in the sense. The same script gives error, which says "Unknown Commmand". In my original script, i have preselected the points to be measured...So selection is not an issue.. Problem is with the error
Actually in my actual scenario, i have to show "n" number of point...
Hi Ferdo
I am looking for macro to find the radius for arc type. To measure radius of a circle, there is a syntax. For section using arc, there is only length i can find, no syntax for arc. Can you u suggest me some script to measure the radius of the arc.
Thanks
Barath
I have installed Catia VR20 in my PC. The command which i have used to invoke Measure item option, i have attached below.
That particular code works in my PC whereas in doesn't work in my Office with same version installed in my office. Can someone tell me wat am i missing to make it work...
Hi ferdo
I checked some sites; it says arc cant be measured the radius with Measurable syntax.
i need macro to get radius of the arc...If u can explain with macro example..it wil be helpful
Thanks
Barath
Hi
I have disassembled a surface and extracted lines and curves out of it.. now i want measure the radius of the curvature of those curves if my disassembled items is circle, tehn i could measure the radius from it, whereas if it is curve, in that case tht code doesnt work...
below is the code...
Hi ferdo
I found the syntax for selecting the object named Intersect. but bfore that how do i select the geometric set. I need the intersect object only from the specified geometric set..
Any suggestion
Regards
barath
Hi ferdo
yea You are right. Send keys dont work in CATScript thats y opted VBA and as per suggestion added delay code bfore send key execution.
And thanks for that useful link, it was more than useful
Thanks and regards
Barath
I have a hybrid shape "INtersect in a know geometric set. I would like to do the selection automatically which is in the Geometric set named " geometric_Set_Disassemble rather specifying the name of the intersect
Any suggestions. My actual code is given below
Dim hybridbody8
Set hybridbody8 =...
This is wat i tried IN catvba
Dim Selection1 as object
Set Selection1 = CATIA.ActiveDocument.Selection
MsgBox "Select a Plane"
Status = sel.SelectElement2(inpt2, "Select a Plane (" & msgboxtext & "), (C)EMA", False) [highlight #FCE94F]' For User Selection (a plane in my case)[/highlight]
Set...
Hi
I wanted to select a plane manually (user input). Once user selects the Plane (parent Geomertic Set is Unknown in this case), i want tht plane to be copied to the new geometric set (Geo_Set_Plane) which i created.
Any suggestions
How to add to the selection and copy it to the new...
HI
I tried ferdo's code but still my background colour stays in white. Doesnt get back to old color after putbackground colour statement. Am i missing something
Any suggestions
Thanks
Barath
Hi
Actually I have never used this annotations options bfore..Does Annotations gives the coordinate of that point with respect to local coordinate.
Thanks
Barath
Hi Ferdo
Thanks for replying
Actually i don wanna choose the saving location..I jus wanna save the picture in the same folder where active cat part is.. My need is something like this..to get the file path of active cat part.. any function to retrieve the file path of opened active cat part ...
Hi
I need to create the dimension of the section surface like i have shown in the attachment using vb script.
I have extracted the points and its coordinates using a script..... Now i need code/script to add visual dimension like tht with the coordinate details available...
I tried with some...
HI
I would like to save the screen shot/snapshot in the same folder where My actual screenshot.CATvbs present.
fileloc = [highlight #CC0000]"D:\Screenshot/"[/highlight]
Dim exten
exten = ".jpeg
i don wanna use the specific file location to be saved..any code to grab the location of the...