cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.

Layer Combination API

Le Tan Kien
Booster

I want to create an add-on that switches to the view named "9:平面画像作成用". Is there a way to do this? Please guide me.

LeTanKien_0-1746953365606.png

 

5 REPLIES 5
AllanP
Expert


GSErrCode ACAPI_Navigator_ChangeCurrLayerComb ( API_AttributeIndex * layerCombIndex )

 

https://graphisoft.github.io/archicad-api-devkit/group___navigator.html#gab55c4569a18237a48fce470793...

I have been using ArchiCAD continually since ArchiCAD 4.5, 4.5.5, 5, 5.1, 6, 6.5, 7, 8, 8.1, 9, 10, 11, 12, 13, 15, 18, 21, 22, 25, now testing 28
Member of Architalk since 2003, but missed the migration to Graphisoft. Melbourne, Australia

Can you give me an example snippet to switch to that layer? I’ve tried it but it doesn’t switch to the layer. Thank you sir.

API_AttributrIndex layerCombInd = 21;   // the layer combination id of the desired layer

GSErrCode    err = NoError;

 

in Archicad 25 it was

err = ACAPI_Environment(APIEnv_changeCurrLayerCombID, &layerCombInd);

 

now in Archicad 28 i think it is

err =ACAPI_Navigator_ChangeCurrLayerComb ( &layerCombInd );

 

 

I have been using ArchiCAD continually since ArchiCAD 4.5, 4.5.5, 5, 5.1, 6, 6.5, 7, 8, 8.1, 9, 10, 11, 12, 13, 15, 18, 21, 22, 25, now testing 28
Member of Architalk since 2003, but missed the migration to Graphisoft. Melbourne, Australia
Le Tan Kien
Booster

LeTanKien_0-1747041457869.png

 

Thank you sir, but not work @@

Le Tan Kien
Booster

Thank you sir, I am done