-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathany_document_basic.py
More file actions
39 lines (32 loc) · 1.78 KB
/
Copy pathany_document_basic.py
File metadata and controls
39 lines (32 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
'''
-----------------------------------------------------------------------------------------------------------------------
Script name: Your_Script_Name.py
Version: 1.0
Code: Python3.10.4, Pycatia 0.8.3
Release: V5R32
Purpose: EDIT: One line summary shown on the script button.
Author: EDIT: Your Name
Date: EDIT: DD.MM.YY
Description: EDIT: Full description of what the script does.
EDIT: Continuation lines must be indented.
dependencies = [
"pycatia",
]
requirements: Python >= 3.10
pycatia
Catia V5 running with an open document.
-----------------------------------------------------------------------------------------------------------------------
Change:
-----------------------------------------------------------------------------------------------------------------------
'''
#Imports
from pycatia import catia
if __name__ == "__main__":
caa = catia() #Catia application instance
active_doc = caa.active_document #Current active document
selectionSet = active_doc.selection #Create container for selection
selectionSet.clear() #Clear any existing selection
# TODO: Add script logic here.
# active_doc works for Part, Product, and Process documents.
# Example: active_doc.name | active_doc.selection | etc.
print("\n\n Completed\n\n")