변수집합(Std VarSet)
Appearance
Outdated translations are marked like this.
|
|
| Menu location |
|---|
| Edit → Create → Variable Set |
| Workbenches |
| All |
| Default shortcut |
| None |
| Introduced in version |
| 1.0 |
| See also |
| Spreadsheet Workbench, DynamicData Workbench |
설명
변수집합(Std VarSet) 명령은 변수집합을 생성합니다. 변수집합은 표현식에서 변수로 사용할 수 있는 속성들의 집합입니다.
속성 추가 대화 상자
용법
- 다음 중 하나를 수행하세요.
- 속성 추가 대화 상자가 열립니다.
- 속성의 이름을 입력하세요.
- 변수집합에서 이름은 고유해야 합니다.
- 영숫자와 밑줄(
A~Z,a~z,0~9그리고_)만 허용됩니다. - 첫 번째 문자는 숫자가 아니어야 합니다.
- 프리캐드는 속성 이름에 UpperCamelCase 규칙을 사용합니다. 즉, 각 단어는 대문자로 시작하고 공백이나 밑줄이 없습니다. 속성보기에 이름이 표시될 때는 단어 사이에 공백이 자동으로 삽입되어 이름을 더 쉽게 읽을 수 있습니다. 이 관례를 따르는 것을 권장합니다.
- 속성에 사용할 모둠 이름을 입력하거나 목록에서 모둠을 선택하세요. 모둠 이름에는 속성 이름과 동일한 제한 사항이 적용됩니다.
- 목록에서 유형 속성을 선택하세요. 가장 일반적인 유형은 아래를 참조하세요.
- 속성에 대한 값을 입력하세요. 단위가 있는 속성의 경우 이 입력란에 단위를 입력할 수 있습니다. 표현식을 지정할 수도 있습니다.
- 1.0 and below: 속성을 더 추가하려면 다른 속성 추가 확인란을 선택합니다.
- 필요하다면 속성에 대한 추가적인 설명을 입력할 수 있습니다.
- 추가하기 버튼을 누르세요.
- 대화 상자가 다시 열립니다(1.0 and below: 다른 속성 추가 확인란이 선택된 경우에만 해당). 그러면 새 속성을 추가할 수 있습니다.
- 추가할 속성들이 더이상 없다면 닫기 버튼을 누르세요.
일반적인 속성 유형
FreeCAD는 다양한 속성 유형을 지원합니다. 아래 표는 가장 일반적인 유형 중 일부를 나열합니다. 더 자세한 내용은 FeaturePython Custom Properties을 참조하세요.
| 속성 유형 | 기본 단위 (있는 경우) | 비고 |
|---|---|---|
App::PropertyLength |
mm | App::PropertyDistance와 유사하지만 음수 값을 가질 수 없습니다.
|
App::PropertyAngle |
° (또는 ) | |
App::PropertyFloat |
소수 | |
App::PropertyInteger |
정수 | |
App::PropertyBool |
true 또는 false, 조건식에서 사용할 수 있습니다.
| |
App::PropertyString |
글자열 | |
App::PropertyEnumeration |
글자기반 선택 목록 |
보충 설명
- 속성은 표현식 편집기에서 변수 집합에 저장… 확인란을 선택하여 기존 변수집합에 추가할 수도 있습니다.
- 변수집합은 DynamicData Workbench의 명령을 사용하여 편집할 수도 있습니다. 속성의 이름을 바꾸거나, 모둠을 변경하거나, 유형을 바꾸거나, 설명을 수정할 수 있습니다. 이 외부 작업대는 애드온 관리자에서 설치할 수 있습니다.
파이썬 스크립트
import FreeCAD as App
doc = App.ActiveDocument
var_set = doc.addObject("App::VarSet", "VarSetName")
var_set.addProperty("App::PropertyInteger", "MyNumber") # Property is added to the Base group.
var_set.MyNumber = 123
var_set.addProperty("App::PropertyString", "MyText", group="SomeGroup", doc="Some tooltip information")
var_set.MyText = "Abc"
doc.recompute()
- File: New Document, Open, Open Recent, Close, Close All, Save, Save As, Save Copy, Save All, Revert, Import, Export,Merge Document, Document Information, Print, Print Preview, Export PDF, Exit
- Edit:
- Miscellaneous: Undo, Redo, Cut, Copy, Paste, Duplicate Object, Delete, Recompute, Box Selection, Box Element Selection, Select All, Transform, Placement, Align To, Send to Python Console, Properties, Toggle Edit Mode, Edit Mode, Preferences
- Create: New Part, New Group, Variable Set, Annotation Label, Text Document
- Datums: Coordinate System, Datum Plane, Datum Line, Datum Point
- Link Actions: Make Link, Make Sub-Link, Replace With Link, Unlink, Import Link, Import All Links
- View:
- Miscellaneous: New 3D View, Orthographic View, Perspective View, Fullscreen, Bounding Box, Toggle Axis Cross, Clipping View, Texture Mapping, Toggle Navigation/Edit Mode, Material, Appearance, Random Color, Appearance per Face, Toggle Transparency, Workbench, Status Bar
- Standard Views: Fit All, Fit Selection, Align to Selection, Isometric, Dimetric, Trimetric, Home, Front, Top, Right, Rear, Bottom, Left, Rotate Left, Rotate Right, Store Working View, Recall Working View
- Freeze Display: Save Views, Load Views, Freeze View, Clear Views
- Draw Style: As Is, Points, Wireframe, Hidden Line, No Shading, Shaded, Flat Lines
- Stereo: Stereo Red/Cyan, Stereo Quad Buffer, Stereo Interleaved Rows, Stereo Interleaved Columns, Stereo Off, Issue Camera Position
- Zoom: Zoom In, Zoom Out, Box Zoom
- Document Window: Docked, Undocked, Fullscreen
- Visibility: Toggle Visibility, Show Selection, Hide Selection, Select Visible Objects, Toggle All Objects, Show All Objects, Hide All Objects, Toggle Selectability
- Toolbars: File, Edit, Clipboard, Workbench, Macro, View, Individual Views, Structure, Help, Lock Toolbars
- Panels: Tree View, Property View, Model, Selection View, Python Console, Report View, Tasks, DAG View
- Overlay Docked Panel: Toggle Overlay for All Panels, Toggle Transparent Panels, Toggle Overlay, Toggle Transparent Mode, Bypass Mouse Events in Overlay Panels, Toggle Left, Toggle Right, Toggle Top, Toggle Bottom
- Link Navigation: Go to Linked Object, Go to Deepest Linked Object, Select All Links
- Tree View Actions: Sync View, Sync Selection, Sync Placement, Preselection, Record Selection, Single Document, Multi Document, Collapse/Expand, Initiate Dragging, Go to Selection, Selection Back, Selection Forward
- Tools: Addon Manager, Measure, Clarify Selection, Quick Measure, Units Converter, Load Image, Save Image, View Turntable, Scene Inspector, Dependency Graph, Export Dependency Graph, Document Utility, Edit Parameters, Customize
- Macro: Record Macro, Macros, Recent Macros, Execute Macro, Attach to Remote Debugger, Debug Macro, Stop Debugging, Step Over, Step Into, Toggle Breakpoint
- Help: What's This, Start Page, Users Documentation, FreeCAD Forum, Report an Issue, Restart in Safe Mode, Developers Handbook, Python Modules Documentation, FreeCAD Website, Donate to FreeCAD, About FreeCAD
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Assembly, BIM, CAM, Draft, FEM, Inspection, Material, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub
