Forum Replies Created
Upload image test. I congratulate you for your effort is appreciated, with sympathy.
I do this example to work. The height and width can not use viewer.
Dim myViewer3D As Viewer3D
Set myViewer3D = CATIA.ActiveWindow.ActiveViewer
Dim H, W As String
H = myViewer3D.Height
W = myViewer3D.Width
myViewer3D.Height = “500”
myViewer3D.Width = “500”
Dim objViewer3D As Viewer3D
Set objViewer3D = CATIA.ActiveWindow.ActiveViewer
objViewer3D.CaptureToFile catCaptureFormatJPEG, “C:\Users\Cornel Florea\Desktop\myPicture.jpg”
Hi! I want public your answer on the forum. Now it is more clear to me this exercise. Thank you very much.
‘activedocument must be a catpart
Dim partdoc1 As Document
Set partdoc1 = CATIA.ActiveDocument
Dim part1 As Part
Set part1 = partdoc1.part
Dim hsf1 As Factory
Set hsf1 = part1.HybridShapeFactory
Dim myPoint As HybridShapePointCoord
Set myPoint = hsf1.AddNewPointCoord(1.000000,0.000000,0.000000)
Dim Ref As Reference
Set ref=part1.CreateReferenceFromGeometry (MyPoint)
Now is OK!
I have found this information in helpful, examples of creating face-names for a Pad:
Bottom (LIM2) Face:(Brp:(Pad.1;1);None:())
Top (LIM1) Face:(Brp:(Pad.1;2);None:())
Side 1 Face:(Brp:(Pad.1;0:(Brp:(Sketch.1;1)));None:())
Side 2 Face:(Brp:(Pad.1;0:(Brp:(Sketch.1;2)));None:())
Side 3 Face:(Brp:(Pad.1;0:(Brp:(Sketch.1;3)));None:())
Side 4 Face:(Brp:(Pad.1;0:(Brp:(Sketch.1;4)));None:())
But this question remains: on this forum I can attach the pictures? For a better understanding.
Hello, thank you very much for your answer.
I want all data to be read in the TestFile and displayed in a window, row by row.
TestFile defined as object are needs a path?
How to write this path for TestFile? TestFile is saved in a specific location?
It is a text file with *.txt extension (TestFile.txt) ?!
Dear Emmett. I am a mechanical engineer. I recently bought the book “Catia V5 Macro Programming, Dieter R. Ziethen” I want to learn programming. I live in Romania.
I hope to release interesting and challenging themes forum. Thank you.