CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > ANSYS Meshing & Geometry

[DesignModeler] 3D Curve

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 9, 2017, 10:57
Unhappy 3D Curve
  #1
New Member
 
Sama Mohammad
Join Date: Jul 2016
Posts: 5
Rep Power: 9
Sama Mohammad is on a distinguished road
Hi all,
I'm trying to write a code for Design Modeler to execute some repetitive steps, one of these steps is to create 3D curve passing by some points in coordinate file and I'm tryin this JS code:
Code:
geometry1.SendCommand( Command = """var Cr1 = ag.gui.CreateCurve();
Cr1.Name = "first";
Cr1.CoordinateFile = "C:/Users/Sama Mohamed/Desktop/sample 3d Crves/3d Curves.txt";
agb.Regen();
""")
But it failed, and I got this alert -shown in image- and I can't find any help about the correct syntax in the design modeler user's guide, So i'll highly appreciate any help
Attached Images
File Type: jpg adas.jpg (15.0 KB, 10 views)
Sama Mohammad is offline   Reply With Quote

Old   November 9, 2017, 12:23
Default
  #2
New Member
 
Sama Mohammad
Join Date: Jul 2016
Posts: 5
Rep Power: 9
Sama Mohammad is on a distinguished road
As an update,
I tried to execute the code through Design Modeler itself without send command as following:
Code:
var cr1 = ag.gui.CreateCurve();
cr1.CoordinateFile="C:/Users/Sama Mohamed/Desktop/sample 3d Crves/3d curves.txt";
And it works fine, but I need to execute it through ANSYS workbench as It's a part of code which will include automation of meshing and also fluent analysis, so how to write it correctly inside "send command"!
Sama Mohammad is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 11:12
[Gmsh] Vertex numbering is dense KateEisenhower OpenFOAM Meshing & Mesh Conversion 7 August 3, 2015 10:49
meshing of a compound volume in GMSH shawn3531 OpenFOAM 4 March 12, 2015 10:45
block-structured mesh for t-junction Robert@cfd ANSYS Meshing & Geometry 20 November 11, 2011 04:59
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


All times are GMT -4. The time now is 06:27.