Ansys Optics Help Center home page
Products
  • Ansys Optics
  • Downloads
Solutions
  • Applications
  • Customer Success
Learn
  • Learning Centre
  • Webinars
  • On-Demand Webinars
  • White Papers
  • Blogs
Submit a request
Sign in Evaluate for Free
  1. Ansys Optics
  2. Scripting Language
  3. Commands

TOP

getnumber - Script command

FDTD MODE DGTD CHARGE HEAT FEEM INTERCONNECT

Gets the number of objects that are selected.

Syntax

Description

out = getnumber;

Returns the number of objects that are selected;

Example

Add 2 microns to the radius of all objects named "circle".

select("circle");
for (i=1:getnumber) {
 rad=get("radius",i);
 set("radius",rad+2e-6,i);
}

See Also

Manipulating objects , get , getnamed , getnamednumber , set

Associated files

Related articles

  • getnamednumber - Script command
  • get - Script command
  • Lumerical scripting language - By category
  • FDTD product reference manual
  • Metamaterial microbolometer

Products

  • FDTD
  • MODE
  • CHARGE
  • HEAT
  • DGTD
  • FEEM
  • MQW
  • STACK
  • INTERCONNECT
  • CML Compiler
  • Photonic Verilog-A
  • Downloads

Resources

  • Learn
  • Support
  • Solutions
  • Ansys Innovation Courses
  • Ideas Exchange
  • Ansys Learning Forum
  • Knowledge Base
  • Application Gallery

Corporate

  • About Lumerical
  • Careers
  • News Releases
  • In the Literature
  • Contact Us

Stay in the know

Subscribe to Spotlight Newsletter

Copyright 2024 Ansys Canada Ltd.


Ansys / Lumerical
  • Terms of Service
  • Cookie Policy
  • Privacy Policy
  • Legal Notices
  • Sitemap