001配置SOMs
1、加载SOMs组件
2、激活SOM配置界面
g << gis_program_manager.applications[:gis]
$
sas_dataset_menu.open(g)
$
smallworld_product.application(:swaf_professional).plugin(:soms).activate_as_dialog(:som_dialog, _unset)
To list all the available applications in your session, use:
print(smallworld_product.application_definitions)
To list the applications that are running, use:
print(smallworld_product.applications)
3、在configure中定义transform
transform.new().scalexy(1.500,1.500).rotate(-0.20)
#放大倍数,因为AutoCAD中单位米,而Smallworld数据集单位我定义为厘米(cm),因此要放大100倍
注意,Smallworld中,定义数据集是默认单位是毫米(mm),这种情况下应放大1000倍
transform.new().scalexy(100,100)
transform.new().translate(10000,10000).scalexy(100,100)
transform.new().translate(541569.597,3392759.281).scalexy(100,100)
transform.new().translate(5415695.97,33927592.81).scalexy(10,10)
transform.new().translate(5414914.87,33925410.50).scalexy(10,10)
transform.new().translate(5414644.87,33925380.50).scalexy(10,10)
transform.new().translate(541464.487,3392538.050).scalexy(100,100)