[Gmsh] Help with script for Gmsh

Родион Жуковский zhukovskiy.r at gmail.com
Tue Jun 30 12:31:39 CEST 2015


Hello!
Tell me please, what should I write into script for opening STEP-model,
creating line in certain coordinates and painting this line with red?
I'm tring this:

X1=0.0;
Y1=0.0;
Z1=-1100.0;
X2=500.0;
Y2=500.0;
Z2=-1100.0;
Point(1)={X1,Y1,Z1};
Point(2)={X2,Y2,Z2};
Line(1)={1,2};
Color Red{ Line{ 1 }; }
View "comments" {
  T3(X1, Y1, Z1, 0){ "Your Line" };
};
View.Color.Text3D = Red ;
Merge "C:\Users\Rodion\Work\Triangulation\SALOME-7.5.1-WIN64\Model BN
simple\Zaschita60.stp";

But line doesn't occure. Without opening STEP-model (end line) line occures
but doesn't painted with red.
I need to do this operations in script, without users intervention, but
with opening GUI.
In scripts from Gmsh User Guide I found above said commands but it works
incorrectly.
Thank you!

Best regards,
Zhukovskiy Rodion.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150630/03c6674e/attachment.html>


More information about the gmsh mailing list