OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

how copy object in block editor and paste in model space used python pywin32?

  • Thread starter Thread starter AG1LE
  • Start date Start date
A

AG1LE

Guest
def get_block_objects(block_ref): try: block_name = block_ref.Name block_table_record = block_ref.Database.Blocks.Item(block_name) return block_table_record except Exception as e: print(f"Error accessing BlockTableRecord: {e}") return None

def copy_circle_to_clipboard(circle_entity): try: circle_entity.Copy() print("The circle has been copied to the clipboard.") return True except Exception as e: print(f"Error when copying circle to clipboard: {e}") return False

I can't correct copy object in block editor and paste in model space. I want correct copy and paste object.
<p>def get_block_objects(block_ref):
try:
block_name = block_ref.Name
block_table_record = block_ref.Database.Blocks.Item(block_name)
return block_table_record
except Exception as e:
print(f"Error accessing BlockTableRecord: {e}")
return None</p>
<p>def copy_circle_to_clipboard(circle_entity):
try:
circle_entity.Copy()
print("The circle has been copied to the clipboard.")
return True
except Exception as e:
print(f"Error when copying circle to clipboard: {e}")
return False</p>
<p>I can't correct copy object in block editor and paste in model space. I want correct copy and paste object.</p>
 

Latest posts

Top