smbGetLibraryPath

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SimMechanics
Introduced first in SolidGeometry 3.2, Creation date: 2016-12-25, Last change: 2025-09-14

returns for a simulink/simscape block the library path



See Also: smbGetSubSystempath , smbGetBlockInfo

Example Illustration

 missing image of smbGetLibraryPath(B)

Syntax

[Lpath,Bpath]=smbGetLibraryPath([B])

Input Parameter

B: Block or if empty => gcb

Output Parameter

Lpath: Library path
Bpath: Path to current subsystem

Examples

Click on a block in simulink or simscape and call
lpath=smbGetLibraryPath(gcb), bpath=smbGetSubSystempath(gcb)
add_block(lpath,[bpath filesep 'xxx'],'MakeNameUnique','on')




Copyright 2016-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21