Skip to content
Discussion options

You must be logged in to vote

It works as expected.

layer_settings is an object which holds settings data and you ve to pass that to the function. your code is not valid.

It has to be done like this. In a first step you ve to create the object.

  1. layer_settings = cadwork.layer_settings()
  2. then set the required data e.g. layer_settings.set_layer(1) etc.
  3. pass the object reference to the set_layer_settings
import element_controller as ec
import attribute_controller as ac
import cadwork

layer_settings = cadwork.layer_settings()
layer_settings.set_layer(1)
layer_settings.set_with_dimensions_output()
layer_settings.set_with_attributes_output()

ac.set_layer_settings(ec.get_active_identifiable_element_ids(), layer_settings)

B…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@NOPKGer
Comment options

@Brunner246
Comment options

@NOPKGer
Comment options

@Brunner246
Comment options

Answer selected by NOPKGer
@NOPKGer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants