Editing "ExtGeomFileName" in Solid Blocks via Mask

조회 수: 1 (최근 30일)
Jay
Jay 2014년 12월 3일
댓글: Christopher Bitikofer 2018년 1월 10일
I Got a Solid Block in a Subystem which i stored in a Library for regular use. I use .STL files to provide the Geometrie to the Solid Block. The Directory to this .STL Fle is stored is the 'ExtGeomFileName' Parameter The Problem: the Geometrie is different for every instance of the Subsystem
I Tried to Change the Directory with a Callback in the Mask that starts when Editing the Blocks Name but when i do so, the Link between The Library and the Subsystem gets broken.
Any Ideas how to solve that?

답변 (1개)

Tobias Huth
Tobias Huth 2017년 1월 30일
Hey,
this answer may be late but:
set_param(<solid_block>,'ExtGeomFileName',<path_to_the_solid.stl>)
does the trick. All arguments are strings. The built-in function gcb is a heplful thing when you use something like tat in a library.
Greetings,
Tobias
  댓글 수: 1
Christopher Bitikofer
Christopher Bitikofer 2018년 1월 10일
Thanks! I've been trying to figure out what the property tag for file names is for solid blocks for some time. any chance you still have any idea where you found this???

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by