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

[DesignModeler] Jscript command for Fill in DesignModeler

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 28, 2015, 01:17
Post Jscript command for Fill in DesignModeler
  #1
Member
 
Join Date: Oct 2014
Posts: 44
Rep Power: 11
kar.coep is on a distinguished road
What is the Jscript command for Fill in design modeler? Also is there any command/property of bodies and surfaces that states the distance from coordinate system (to name the bodies in the direction of the flow starting from coordinate system)?
kar.coep is offline   Reply With Quote

Old   April 28, 2015, 19:28
Default
  #2
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 13
Kapi is on a distinguished road
Hi Kar,

I just replied to one of your thread, have a look in your JS files for answers.
Just search Fill in your Ansys folder and it should give you some JS files, go through them and I am sure you will find Fill function.

Cheers
KAPI
Kapi is offline   Reply With Quote

Old   April 29, 2015, 02:22
Post
  #3
Member
 
Join Date: Oct 2014
Posts: 44
Rep Power: 11
kar.coep is on a distinguished road
Hi Kapi,
Thanks for the reply

I am not able to access the C drive js files as the software is installed on my Company's Machine and I don't have the admin rights.

Is there any other way to get these js files? are these on ansys customer portal?
kar.coep is offline   Reply With Quote

Old   April 29, 2015, 03:17
Default
  #4
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 13
Kapi is on a distinguished road
Hi kar,

Yes you can find lot of functions with examples on Customer portal.
You can find all these JS files in the machine where Ansys is installed , I suggest you ask for Admin rights or get rights once and copy all JS files somewhere safe to access them.

Cheers
KAPI
Kapi is offline   Reply With Quote

Old   April 29, 2015, 05:50
Post
  #5
Member
 
Join Date: Oct 2014
Posts: 44
Rep Power: 11
kar.coep is on a distinguished road
Hello Kapi,

I did search the ansys .js files but could not find command for Fill. Is there any other way to get it?

I have read that we can have trial and error with ag.gui.xxxx command generally. So I tried using
ag.gui.AddFill();
ag.gui.InsertFill();
ag.gui.CreateFill();
ag.gui.NewFill();
ag.gui.Fill();

but no success.
kar.coep is offline   Reply With Quote

Old   April 29, 2015, 22:18
Default
  #6
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 13
Kapi is on a distinguished road
Hi Kar,

After quick search, I found the below code from JS files.
Try this!

Code:
ag.gui.CreateCap();
and let me know if it works!!

Cheers
KAPI
Kapi is offline   Reply With Quote

Old   April 30, 2015, 03:09
Smile
  #7
Member
 
Join Date: Oct 2014
Posts: 44
Rep Power: 11
kar.coep is on a distinguished road
Thanks Kapi!!! This command works as expected..


Thanks again


Did you search for this command in 'C:\Program Files\ANSYS Inc\v150\aisol\DesignSpace\DSPages\scripts'?
kar.coep is offline   Reply With Quote

Old   April 30, 2015, 03:43
Post
  #8
Member
 
Join Date: Oct 2014
Posts: 44
Rep Power: 11
kar.coep is on a distinguished road
Does ag.gui command require Design modeler to be open in interactive mode?
kar.coep is offline   Reply With Quote

Old   April 30, 2015, 19:48
Default
  #9
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 13
Kapi is on a distinguished road
Hi Kar,

Quote:
Did you search for this command in 'C:\Program Files\ANSYS Inc\v150\aisol\DesignSpace\DSPages\scripts'?
I just went to "C:\Program Files\ANSYS Inc\v150" and typed in what I wanted and then looked into JS files for "Fill" till I get it.

Thats the way you should go for any function you need.

Quote:
Does ag.gui command require Design modeler to be open in interactive mode?
Yes it does.

But when updating Geometry in DesignModeler via "parameters" you can choose not to open.

Hope It helps,

Cheers
KAPI
Kapi is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[DesignModeler] DesignModeler Scripting: How to get Full Command Access ANT ANSYS Meshing & Geometry 53 February 16, 2020 16:13
Physical size of geometry in DesignModeler Michael Rasmussen CFX 9 June 16, 2017 04:27
[DesignModeler] find features of Gambit in DesignModeler code_source ANSYS Meshing & Geometry 13 April 30, 2014 08:33
[DesignModeler] Importing Solidworks body (incl parameters) into DesignModeler Evona ANSYS Meshing & Geometry 0 April 14, 2013 09:01
[Other] exchange of parameter values between TurboGrid and DesignModeler in Workbench la7low ANSYS Meshing & Geometry 2 February 21, 2011 16:12


All times are GMT -4. The time now is 10:56.