• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • Community
  • My Account
  • About Us
  • Disclaimer
  • Privacy Policy
  • Contact Us
The Binduvisarga

THE BINDUVISARGA

Engineering and Technology Information

  • Engineering
  • Technology
  • Education
  • Aquaculture
  • AidArtists
  • Consac
  • Signify
  • Inferasys
  • Digiverse

Creating parametric objects in nanoCAD Mechanica library | Part Two

January 16, 2023 by Arun Talukdar Leave a Comment

Working with the script of an object. Script Wizard

The first part of this article describes the process of creating a library object and connecting geometry to it. The created object has a basic script with basic functions, but so far it does not contain variables.

The script needs to be modified in accordance with the required functionality of the object. To simplify this task, let’s take the script of a similar library object.

As mentioned in the first part, the said article can be used as instructions for creating and managing parametric objects. The last part of the process is described here.

You need to download an object that will be used as the base object for this example by clicking on the Download the File for this article link at the beginning of the article.

You need to insert this object into the library first. To do this, in the Library, right-click on the Sample folder to open the context menu and select Import Object (Figure 1). An explorer opens, through which we browse to the downloaded file and click Open. The new object will be inserted.

Figure 1

In the Script menu of the ScriptMaster, select Get script from other object, in the Select object window that appears, open the Sample folder, and click on the Washer object (Figure 2).

Figure 2

The script for the new object will be updated (Figure 3).

Figure 3

The object that the script was copied from has a simpler geometry. Let’s bring this script in accordance with our object. Add parameters, and set new values.
To do this, select Script wizard in the Master menu and click Yes in the pop-up window that appears (Figure 4).

Figure 4

The General properties window opens. Adding and correcting information as shown in Figure 5. Click Next. In the Object Name field, enter the name of the object in the form in which it will be displayed in the library. The value in the Cover order (ZOrder) field controls the overlap of objects relative to each other in the assembly drawing.

Figure 5

In the Parameter Properties window, add the missing parameters and set their values. We modify the existing parameter values. For our example, let’s set the following values: b = 4; B = 6; D = 71.5; D1 = 0.75*D; d = 30; f = 1; l = 0

We make all parameters available for editing: select a parameter, click Changeable (available for editing) (Figure 6).

Figure 6

To add a parameter, enter a new name in the name field of an existing parameter and click the Add parameter button, and then enter the Initial value that will be assigned by default in the created parameter (Figure 7).

Figure 7

In the next step, we check the sequence of parameters. For the script to be executed correctly, the D parameter must be higher than D1, since the latter is set by the formula through the former. If necessary, use the arrow buttons to change the order of parameters (Figure 8).

Figure 8

At the next step, without changing anything, click Next (Figure 9).

Figure 9

Now we will add a description of the working planes – this will be necessary for superimposing dependencies between other components. Click the Add Plane button, set the OYZ orientation, and enable the Changeable (available for editing) option (Figure 10). Click Next.

Figure 10

We move forward through the next two steps without making any changes (Figure 11).

Figure 11

In the Checkboxes window, we check the variable Show object while inserting: this option must be enabled (Figure 12).

Figure 12

At the final step of the Script wizard, you can view the generated program script and, if necessary, return back to any of the previous steps to make changes.
Click OK and save the script (Figure 13).

Figure 13

Now you can check the operation of the new object. Save the changes made to the object and close the MechWizard. In the Standard part library, we find the created object (the Users folder). If it is not displayed, click Refresh on the toolbar. Click on the object and move the mouse pointer to the model space. Select the insertion point and direction. A window with parameters appears. In the Value field, you can change the value of any parameter. A view selection is available on the left side of the window. When you select a particular view, you can see its image in the preview window – this is very convenient when the object has many views.

Change the values of B to 4, and b to 2, and click OK. The washer geometry will change accordingly (Figure 14).

Figure 14

You can double-click on the object to return to the parameter editing mode, and then change the parameters again, but this is only useful if such changes are made very rarely. Given that the washer is one of the products that are constantly used in the machine-building design, and can have more than a dozen models, this option is not entirely acceptable. It is more appropriate to create additional models with new values, which will save you from unnecessary steps in the future.

This, as well as how to create and manage assembly dependencies, will be discussed in the next part.

Filed Under: Technology Tagged With: nanoCAD Mechanica

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

E-mail Newsletter

  • Facebook
  • Instagram
  • LinkedIn
  • Pinterest
  • Twitter
  • YouTube

More to Explore

Mosquitofish Invasion in India to fight mosquitoes – The Unintended Consequences

February 6, 2024 By Nupur Nayak

Overcoming Dyslexia

Empowering Students with Dyslexia in Higher Education

January 24, 2024 By Nupur Nayak

nanoCAD Mechanica Object Library

Creating parametric objects in nanoCAD Mechanica library | Part One

January 16, 2023 By Arun Talukdar

Technical Training on Biofloc Technoloy

Where to get the best training and guidance on Biofloc Technology?

January 16, 2021 By Arun Talukdar

A state-of-the-art AI design assistant commands a sleek, minimalist workstation. In the foreground, a 3D model of an innovative product design hovers, its intricate form and curves meticulously optimized through generative algorithms. In the middle ground, the AI assistant's display showcases a visual dashboard, alive with real-time performance metrics, design iterations, and cost-efficient manufacturing recommendations. The background depicts a futuristic, glass-walled office, bathed in soft, directional lighting that accentuates the elegant, high-tech aesthetics. An atmosphere of seamless human-AI collaboration pervades the scene, hinting at the transformative power of AI in automating repetitive design tasks and empowering designers to explore bold, innovative concepts.

How CAD Will Transform by 2055?

July 27, 2025 By Arun Talukdar

Quantum Computing Simplified

Quantum Computing Made Simple for Every Tech Enthusiast

July 27, 2025 By Arun Talukdar

Footer

Our Team

Welcome to The Binduvisarga – where Engineering meets Innovation, Technology sparks Curiosity, and Education drives Possibility!

We’re not just another blog — we’re a clean, sharp, and exciting hub for thinkers, builders, and learners. From cutting-edge tech trends to deep dives into engineering principles and smart learning hacks, The Binduvisarga is your go-to source for knowledge that powers the future.

Join our community of curious minds — because here, every idea begins with a spark!

Recent

  • Can AI-Generated Blog Content Be Monetized?
  • How CAD Will Transform by 2055?
  • Quantum Computing Made Simple for Every Tech Enthusiast
  • How Artificial Intelligence Is Transforming Design, Simulation, and Manufacturing?
  • The Jobs Most Likely to Be Lost and Created by AI

Search

Useful Links

Project

Copyright © 2025 · All Rights Reserved · Operated By The Binduvisarga · Last Modified: January 16, 2023

Scroll Up