current
Get object of currently selected element
Syntax
Description
returns the
object of the currently selected element. The element can be a component, port, or
connector. When no element is selected, this function defaults to
obj = systemcomposer.arch.currentsystemcomposer.arch.Architecture.current.
returns the object of the current model.model = systemcomposer.arch.Model.current
returns the object of the current component.comp = systemcomposer.arch.Component.current
returns the object of the current adapter.adapter = systemcomposer.arch.Adapter.current
returns the object of the current variant component.varComp = systemcomposer.arch.VariantComponent.current
returns the object of the current architecture port.archPort = systemcomposer.arch.ArchitecturePort.current
returns the object of the current component port.compPort = systemcomposer.arch.ComponentPort.current
returns the object of the current connector.conn = systemcomposer.arch.Connector.current
returns the object of the current physical connector.physConn = systemcomposer.arch.PhysicalConnector.current
Examples
Output Arguments
More About
Version History
Introduced in R2019a
See Also
Functions
iterate|getQualifiedName|lookup|systemcomposer.createModel|systemcomposer.loadModel|systemcomposer.openModel|open|save|close|createArchitectureModel|createArchitectureSubsystem|linkToModel|inlineComponent|addComponent|getComponent|addPort|getPort|setName|getSubElement|getPortElement|getConnectorTo|connect|setMaskImage|IsAdapterComponent|addAdapter|addInput|getInput|connectTo|updatePosition|addMapping|removeMapping|smartConnect|getUnconnectedPorts|getSmartConnectPolicy|setSmartConnectPolicy|destroy
Objects
systemcomposer.arch.Element|systemcomposer.arch.Architecture|systemcomposer.arch.Component|systemcomposer.arch.Adapter|systemcomposer.arch.ComponentPort|systemcomposer.arch.ArchitecturePort|systemcomposer.arch.PortElement|systemcomposer.arch.Connector|systemcomposer.arch.PhysicalConnector