Challenge

Week - 8 - Creating component and property

AIM:

Create the component and property.

OBJECTIVE:

  • Ask the user to enter name of a component and its thickness.
  • Write a code that will automatically create components and assign thickness to it.
  • The code should decide on its own what type of collector should be created depending on the user profile/deck.
  • According to deck the code should decide , whether a property needs to be created or not.
  • Auto color the created component and property.

PROCEDURE:

CODE:

Here I have written the code to run for two profiles Radioss and optistruct in two different functions,

  • The component is created using *createentitycomp with a name that user has entered in entry GUI similarly, the property is created using (*createentity prop)
  • The thickness of the individual property is set using (*setvalue props ) command with the user-defined thickness.
  • now the updated property is assigned to the respective component using (*propertyupdate)
  • Then in order to create components based on the profile I have implemented if condition which is assigned to button named (create) in GUI

OUTPUT:

RESULTS:

  • Name of a component and thickness has been entered.
  • To create components & assigning the thickness a code is been created.
  • For component and property auto color is created.
Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.