Create a rectangle in the YZ plane using GiD_Process

Moderator: GiD Team

merce_lopez
Posts: 3
Joined: Fri Apr 29, 2016 7:52 am

Create a rectangle in the YZ plane using GiD_Process

When I try to create a rectangle in the YZ plane using GiD_Process, for example:

GiD_Process Mescape Geometry Create Object Rectangle 0,0,0 0,1,1 Mescape

I get this error: Error creating rectangle: Corners must be in same z plane

I was thinking about creating points, lines and surface directly, but is there an easy way to create a rectangle in any different plane from z by using GiD_Process or similar?

Thanks!
anna
Posts: 38
Joined: Wed Sep 17, 2014 10:53 am

Re: Create a rectangle in the YZ plane using GiD_Process

Hello,

No, there isn't a shorter way to define it. You will need to create points, lines and the surface.

I'm sorry!
merce_lopez
Posts: 3
Joined: Fri Apr 29, 2016 7:52 am

Re: Create a rectangle in the YZ plane using GiD_Process

Ok! Thank you for the answer.
escolano
Posts: 1625
Joined: Thu Sep 18, 2014 3:31 pm

Re: Create a rectangle in the YZ plane using GiD_Process

A rectangle in 3D is not well defined specifying only two opposite corners !!

the function
GiD_Process Mescape Geometry Create Object Rectangle <corner> <opposite_corner>
expects the corners in the same z plane. It could be at z=0.0 (as usual clicking in screen)
or in a different z, like the plane z=2.0

e.g: this is a valid definition:
GiD_Process Mescape Geometry Create Object Rectangle 0,0,2.0 0,1,2.0 Mescape

In general, as Anna pointed, you must create a geometrical surface creating its points, its lines, and then the surface
Note: you can create entities with GiD_Processs and then GiD keywords,
or using the direct GiD-Tcl command

GiD_Geometry
see GiD Help on customization, Tcl and Tk
Note: developers have more control with Tcl commands that with 'GiD_Process' commands