ACE ACE Design Automation & API Scripting 2 β Questions and Answers
Question 1: Which Dynamo node type is used to execute custom Python scripts within a Dynamo graph?
- Python Script node (Correct answer)
- Code Block node
- Custom Node
- Function node
Correct answer: Python Script node
The Python Script node in Dynamo allows users to write Python 3 (or IronPython) code to perform operations not available through standard nodes.
Question 2: In AutoCAD's .NET API, which method is used to start a transaction that allows safe read/write access to drawing objects?
- TransactionManager.StartTransaction() (Correct answer)
- Database.BeginTransaction()
- Editor.OpenTransaction()
- Application.NewTransaction()
Correct answer: TransactionManager.StartTransaction()
TransactionManager.StartTransaction() opens a new transaction in AutoCAD's .NET API, enabling safe access and modification of database objects.
Question 3: What does the iLogic 'ModelParameters' object in Inventor allow a rule to do?
- Read and write model parameter values by name (Correct answer)
- Export parameters to Excel
- Trigger external workflows
- Lock parameters from user edits
Correct answer: Read and write model parameter values by name
The ModelParameters object in iLogic gives rules programmatic access to read and modify any named parameter in the Inventor model.
Question 4: In Revit API, what is required before making any changes to a Revit model element?
- An open Transaction (Correct answer)
- A document lock
- An active view
- A committed EditScope
Correct answer: An open Transaction
The Revit API requires all model modifications to be performed inside an open Transaction, which must be committed or rolled back.
Question 5: Which Autodesk tool allows visual programming (node-based) for parametric design automation in Revit and Civil 3D?
- Dynamo (Correct answer)
- iLogic
- AutoLISP
- BIM Scripting Engine
Correct answer: Dynamo
Dynamo is Autodesk's visual programming environment, natively integrated with Revit and Civil 3D, enabling node-based automation and computational design.
Question 6: When automating sheet set creation in AutoCAD via .NET API, which class manages the collection of sheets and subsets?
- AcSmSheetSet (Correct answer)
- SheetManager
- PlotSet
- DrawingSet
Correct answer: AcSmSheetSet
AcSmSheetSet is the COM-based class in AutoCAD's Sheet Set Manager API that represents a sheet set and provides access to its sheets and subsets.
Which Dynamo node type is used to execute custom Python scripts within a Dynamo graph?