Display full version of the post: The PrESMod Language for parametric modeling (2D)

E7ern4l
14.06.2011, 17:04




A
short description of the PrESMod modeling language and

a
preprocessor for its application

 

            The main advantage of the PrESMod
modeling language lies in the availability of all possible variations for the
description of entities. Characteristic points, coordinates of characteristic
points and characteristic parameters, including statements used in the primary
(geometrical) description enable a great number of variations for the
description of every standard entity (straight line, arc, circumference).
Description of the geometry of curved lines can be performed using defined
functions in parameter or non-parameter forms. Forms with concrete dimensions
(constants), general dimensions (variables) and a combination of concrete and
general dimensions can be described.

            When forms are described in the
PrESMod modeling language, a preprocessor exists, which processes (with
inserted concrete dimensions before or during processing) the form description
(program) and delivers it to AutoCAD where the drawing is made.

            Dimensions of the drawing obtained
are defined in the form description itself, while variable (general) dimensions
are selected or input before preprocessing of the form description or during
form processing (if they are not selected before processing of the form
description).

            For forms with only concrete
dimensions, such as the form defined as “kriva”
(curve) in the following demo example, selection of the program name “kriva” results in the drawing of the
form “kriva”.

             A mechanical element or the second form
containing variable dimensions can be described using this language (in this
DEMO example it is the form Fig1)
and when you would like to draw the element or form with the desired
dimensions, you simply select the description of that part (the description
program for this DEMO example is Fig1.txt)
insert dimensions, after which the output drawing in AutoCAD is obtained.

            Two examples of the description of
forms, as an illustration, are given here, containing output drawings made in
AutoCAD.