선택한 형상에 대한 정보를 제공하고 길이, 기울기(도, 라디안, 경사도, 백분율), 면적, 부피 및 무게를 다양한 단위(미터법 및 영국식 단위)로 변환하여 표시할 수 있습니다. 이제 이 매크로는 편집 상태에서 스케치의 요소에도 적용됩니다.
Temporary code for external macro link. Do not use this code. This code is used exclusively by Addon Manager. Link for optional manual installation: Macro
# This code is copied instead of the original macro code
# to guide the user to the online download page.
# Use it if the code of the macro is larger than 64 KB and cannot be included in the wiki
# or if the RAW code URL is somewhere else in the wiki.
from PySide import QtGui, QtCore
diag = QtGui.QMessageBox(QtGui.QMessageBox.Information,
"Information",
"This macro must be downloaded from this link\n"
"\n"
"https://gist.githubusercontent.com/mario52a/8d40ab6c018c2bde678f/raw/2ba412bef3a9a5a0c6da4f3be18513a585f3a301/FCInfo_en_Ver_1-30c-rmu_Docked.FCMacro" + "\n"
"\n"
"Quit this window to access the download page")
diag.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
diag.setWindowModality(QtCore.Qt.ApplicationModal)
diag.exec_()
import webbrowser
webbrowser.open("https://gist.githubusercontent.com/mario52a/8d40ab6c018c2bde678f/raw/2ba412bef3a9a5a0c6da4f3be18513a585f3a301/FCInfo_en_Ver_1-30c-rmu_Docked.FCMacro")
(0.8,0.8,0.8) : RVB float: Mode RVB format float de 0.0 à 1.0
(The number of decimals depend of the option "x (Decimals)")
Sub.Objet : Change the color of the selected object or subobject. If this box is activated Sub.Objet the face or sub Object selected is modified or duplicated. If it is not activated (default) the object is modified (color) or duplicated
Coul. Obj : Change the color of the shape or the face depend of the choice. In case object Mesh or Points the complete object is colored.
Dupl. Obj : Duplicates the face or the object depend to the chosen option. In the case of a Mesh object or Points the complete object is colored. Duplicate a Mesh object keeps the original and creates a solid shape. Duplicate a Points object keeps the original and creates a copy.
0 : Degree of transparency of the selected face or object depend on the option chosen 0 = opaque , 100 = transparent
(you can checked to false the variable switch_setVisible_GBox_003_Color for hidden the Box)
영역 4: 메시 구성 요소
선택 항목이 메시 객체인 경우에만 "구성 요소(Componants)"'영역이 표시되고 다음을 보여줍니다.
모서리 : 모서리의 개수 9561.
면 : 면의 개수 6374.
점 : 점의 개수 3189.
(상자를 숨기려면 변수 switch_setVisible_GBox_004_Object_Mesh를 false로 체크할 수 있습니다)
영역 5: 단위
mm : 객체가 면의 둘레인 경우 객체의 길이가 표시됩니다. 단위 크기를 선택할 수 있습니다: km, hm, dam, m, dm, cm, mm, µm, nm, pm, fm, inch, link, foot, yard, perch, chain, furlong, mile, league, nautique.
물체의 길이 : 물체의 길이 또는 면의 둘레 10.0 mm.
객체가 원이면 두 번째 줄 반경 :이 열리고 원의 반지름과 지름 2.0 mm (직경 4.0 mm)이 표시됩니다.
형상의 둘레(12). 객체의 둘레와 객체에 포함된 하위 객체(Edges)의 수 120.0mm.
(상자를 숨기려면 변수 switch_setVisible_GBox_005_Value_Unit을 false로 체크할 수 있습니다)
영역 6: 기울기
객체의 기울기는 다음과 같이 표시될 수 있습니다:
10진수 도수, 예: 174.831872611°
도 분 초, 예: 174° 49' 54.741401
라디안, 예: 3.05139181449 rad
등급, 예: 194.257636235 gon
백분율, 예: 30° = 57.74%
XY, YZ, ZX 평면의 경사각 및 해당 좌표
방향 객체, 벡터(0.0, 0.0, -10.0)는 객체의 방향을 제공합니다. 계산은 다음과 같습니다: coord_1 - coord_2 = 방향(또는 역방향)
Direction 이 버튼은 객체 방향으로 선을 만듭니다.
ValueAt(0), Vector (0.0, 0.0, 10.0)는 매개변수 값에 해당하는 3D 벡터를 반환합니다.
ValueAt(0) 이 버튼은 객체의 ValueAt 방향으로 선을 생성합니다.
NormalAt(0,0), Vector (0.0, 0.0, 1.0)는 매개변수 값에 해당하는 3D 벡터를 반환합니다.
NormalAt(0,0) 이 버튼은 객체의 NormalAt 방향으로 선을 만듭니다. (상자를 숨기려면 변수 switch_setVisible_GBox_006_Inclination을 false로 체크할 수 있습니다)
영역 7: 표면과 부피
표시되는 형태의 표면, 단위 크기 선택 가능. 600.0 mm2
표시되는 면의 표면, 단위 크기 선택 가능. 0.0 mm2
표시되는 형태의 부피, 단위 크기 선택 가능. 1000.0 mm3
단위, 원하는 단위를 선택하세요.
gram 단위 질량을 선택할 수 있습니다. ton,quintal, kg, hg, dag, gram, dg, cg, mg, µg, ng, pg, fg, gr (grain), dr (drachm), oz (once), oz t (once troy), lb t (livre troy), lb (livre av), st (stone), qtr (quarter), cwt (hundredweight), tonneau fr, ct.
표시되는 형의 무게, 단위 질량을 선택할 수 있습니다. 2.7 g
dm3에 의한 재료의 밀도(kg) 2.7000 kg (by dm3)
재료 금속 알루미늄 (Al),2.7,10.0,adapt Price
매크로 검색을 시작할 때 FCInfo_material.txt 파일이 없으면 하나의 FCInfo_material.txt 파일이 생성됩니다.
이 형식으로 저장된 10가지 유형의 자료를 사용하여 파일이 생성됩니다.
재료 제목, dm3의 밀도, dm3의 가격, 선택에 대한 텍스트 정보
(쉼표로 구분된 4개 필드)
액체 물 (H2o),1,10.0,적응 가격
재료 베톤 (Beton),2.4,10.0,적응 가격
금속 알루미늄 (Al),2.7,10.0,적응 가격
금속 구리 (Cu),8.96,10.0,적응 가격
금속 금 (Au),19.3,10.0,Gratis
금속 철 (Fe),7.87,10.0,적응 가격
금속 납 (Pb),11.35,10.0,적응 가격
금속 마그네슘 (Mg),1.43,10.0,적응 가격
금속 니켈 (Ni),8.27,10.0,적응 가격
금속 땜납 (Sn),7.29,10.0,적응 가격
금속 백금 (Pt),21.45,10.0,적응 가격
금속 은 (Ag),10.5,10.0,적응 가격
금속 나트륨 (Na),0.97,10.0,적응 가격
금속 티타늄 (Ti),4.4,10.0,적응 가격
금속 아연 (Zn),7.1,10.0,적응 가격
나무 너도밤나무,0.8,10.0,적응 가격
나무 MDF,0.75,10.0,적응 가격
나무 마호가니,0.6,10.0,적응 가격
나무 참나무,0.7,10.0,적응 가격
나무 잣나무,0.4,10.0,적응 가격
새로운 재료 또는 편집 Metal Nickel (Ni),8.27,10.0,적응 가
이 형식으로 새로운 료 하나를 수정하거나 편집할 수 있습니다:
제목, dm3의 밀도, dm3의 가격, 선택에 대한 텍스트 정보
(쉼표로 구분된 4개 필드)
또한 특정 형식을 준수하여 좋아하는 편집기에서 파일을 편집할 수도 있습니다.
원하는 경로에 다음 변수를 사용하여 파일을 저장할 수 있습니다: seTMaterialSavePathName
기본적으로 파일은 매크로 경로에 생성됩니다.
Delete 1/17 : 표시된 필드를 삭제합니다
Save : 수정 사항이나 새로운 자료를 저장합니다
(상자를 숨기려면 변수 switch_setVisible_GBox_007_Surface_and_Volume을 false로 선택할 수 있습니다)
영역 8: 가격
비용 총계: 선택한 객체의 비용 총계 0.027 Eu
가격(kg/dm3): 선택한 재료의 가격(금속 알루미늄(Al),2.7,10.0,적응 가격) 10,0000 Eu(kg 기준)
'(상자를 숨기려면 변수 switch_setVisible_GBox_008_Cost_And_Price를 false로 선택할 수 있습니다)
영역 9: 경계상자
경계상자는 형상의 극한 치수를 보여 줍니다.
최대 X 길이: 10.0mm
최대 Y 길이: 10.0mm
최대 Z 길이: 10.0mm
대각선 길이: 17.3205mm
Tracing : 경계상자 크기에 맞춰 6개의 사각형을 만듭니다.
Volume : 경계상자의 치수에 맞춰 볼륨을 생성합니다
If the Text Dim. is checked, the spinbox dimension of text 3,000 is operational for give your value (3.0 by default)
(you can checked to false the variable switch_setVisible_GBox_009_BoundBox for hidden the Box)
영역 10: 중심
형상의 중심과 그 XYZ 좌표
질량 중심과 그 XYZ 좌표
버튼은 점, 축, 평면, 복사 벡터축 형태인 FreeCAD.Vector(-24.0, 240.0, 7.0)을 생성합니다.(영역13 참고)
(상자를 숨기려면 변수 switch_setVisible_GBox_010_Center_Mass를 false로 체크할 수 있습니다)
영역 11: 관성
관성모멘트와 이 좌표들의 길이와 무게
The button creates on point, axis, plane, copy vector axis form FreeCAD.Vector(-24.0, 240.0, 7.0)(see Sector 13)
action line 1 : x1, y1, z1, 0.0
action line 2 : x2, y2, z2, 0.0
action line 3 : x3, y3, z3, 0.0
action 4 diagonal : x1, y2, z3
same for length and weigth
Determinant 1 : 4629629629629.633 computes the determinant of the matrix, in scientific value
Determinant 2 : 4629629629629.6328125 computes the determinant of the matrix, in decimal value
(you can checked to false the variable switch_setVisible_GBox_011_Inertia for hidden the Box)
영역 12: 스프레드시트
Disabled module CheckBox for search or not all details of the object. If it is not checked, only the principal value is displayed.
Vertexes and details of the shape (compt_Edge), (compt_Faces), (compt_Vector of the Face)
Max 200 lines in the table, if there are more than 200 lines it appears (!+ 200) and the number of lines
If the object is complicated with many objects, the time is long and the search is repeated with every mouse click. The write function in the spreadSheet included, decreases the display time for this it is disabled by default
Full details can save be the Save button in a file in CSV format and can be viewed the file in spreadsheet with the Read or by an external spreadsheet as LibreOfficeOpenOffice or other
(you can checked to false the variable switch_setVisible_GBox_012_SpreadSheet for hidden the Box)
영역 13: 스프레드시트 생성
SpreadSheet : create a new spreadsheet in a document
SpreadSheet : the current spreadsheet. if the spreadsheet does not exist one spreadsheet is created
Refresh : refresh the list of spreadsheet in document
- : the spreadsheet(s) present in document
Read : read the data in a spreadsheet saved .FCInfo or txt, asc, csv
Save : save the data in disk in the form selected below .FCInfo or txt, asc, csv
Tabulation : the separator is Tabulation (by default)
Comma : the separator is Comma
Semicolon : the separator is Semicolon
Space : the separator is Space
Option for save or read the spreadsheet with different separator, Tabulation, Comma, Semicolon, Space
The Tabulation are the separator for the FreeCAD [Spreadsheet_Workbench|Spreadsheet workbench]
The number of this four separator are calculate for help if unknown
The COMMA are the old (01.16 and before) separator of the FCInfo macro
Now for compatibility with the FreeCAD spreadsheet and since 01.17 version the TABULATION is the separator by default
If you want to convert your old FCInfo spreadsheet : Open it in FCInfo and save it with the Tabulation option checked (you can checked to false the variable switch_setVisible_GBox_013_SpreadSheet_Creation for hidden the Box)
영역 14: 주요 도구
Info : if this CheckBox is checked, the informations are displayed in the report view window
Point : if checked, one point is created in the coordinate displayed form : FreeCAD.Vector(-24.0, 240.0, 7.0)
Axis : if checked, one axis is created in the coordinate displayed form : FreeCAD.Vector(-24.0, 240.0, 7.0)
Plane : if checked, one axis plane is created in the coordinate displayed form : FreeCAD.Vector(-24.0, 240.0, 7.0)
Clip-B0 : None clipBoard
Clip-B1 : If checked the coordinate are copy in the clipBoard Form : FreeCAD.Vector(X.0, Y.0, Z.0) FreeCAD model
Clip-B2 : If checked the coordinate are copy in the clipBoard Form : X, Y, Z with Comma separator
Clip-B3 : If checked the coordinate are copy in the clipBoard Form : X Y Z as is with Space separator
Left/Right : if this CheckBox is not checked, the window macro are displayed to right (default). If it is checked the window macro are displayed to left. If the option is 1 mode fly (User parameter:BaseApp/Preferences/Macros/FCMmacros/FCInfo/seTPositionFlyRightLeft) this button is not visible .
4 (Decimales) : give the number of decimal displayed
12 (Dim. texte) : give the dimensionof text in the macro
Forum : direction FCInfo forum tread (you must to be connected to internet)
Wiki : direction Wiki FCInfo (you must to be connected to internet)
Ref : refresh the display of data in report view
Exit : exit properly the macro (not use the red cross of the window)
(you can checked to false the variable switch_setVisible_GBox_014_Main_Tools for hidden the Box)
매크로를 실행하면 매크로가 활성 상태를 유지하고 창은 계속 표시됩니다. Exit를 눌러 매크로를 종료합니다. x로 종료하면 매크로는 메모리에 남아 있으며, 데이터는 FreeCAD의 "보고서 보기"에 나타납니다. 이를 종료하려면 FreeCAD를 다시 시작해야 합니다.
오른쪽에 고정,
또는 콤보 보기로 두고 탭으로 접근 가능하게 하거나, 고정하지 않고 선택할 수 있습니다.
선택 사항
사용된 단위
길이 단위:
km, hm, dam, m, dm, cm, mm, µm, nm, pm, fm, inch, link, foot, yard, perch, chain, furlong, mile, league, nautique.
각도 :
decimal degree, ex: 174.831872611°
degree minute seconde, ex: 174° 49' 54.741401''
radian, ex: 3.05139181449 rad
grade, ex: 194.257636235 gon
percent ex: 30° = 57.74%
FCInfo 표시에서 각도에 대한 이해.
FCInfo 표시의 각도 이해
FCInfo 표시에서 각도를 백분로 이해하기 동영상을 보려면 두 번 클릭하세요(이미지는 전체 화면이어야 함)
무게 단위 :
ton, quintal, kg, hg, dag, gram, dg, cg, mg, µg, ng, pg, fg, gr (grain), dr (drachm), oz (once), oz t (once troy),
lb t (livre troy), lb (livre av), st (stone), qtr (quarter), cwt (hundredweight), tonneau fr, ct
추신: 이 매크로는 getSelection()을 사용하고 객체 목록은 1부터 시작합니다. 예: 상자의 경우 Edge1~Edge12이고 콘솔의 코드는 0부터 시작합니다. 예: 상자의 경우 Edge[0]~Edge[11]
이는 정상입니다. OpenCascade 내부에서 배열/목록의 계산은 항상 1'에서 시작하고 0에서 시작하지 않습니다.
제한사항
항상 Exit 버튼을 눌러종료 하세요. Exit 버튼을 누르지 않고 프로그램을 종료하면, 프로그램은 메모리에 남아 계속 실행되고, 디스플레이는 "보고서 보기"에 머물러 있습니다.
표에는 객체의 처음 200개 요소만 표시됩니다. 객체에 200개가 넘는 항목이 있는 경우 (! +200) 신호가 표시됩니다. 전체 데이터 목록은 Save 버튼을 눌러 저장된 파일에서 볼 수 있습니다.
실행 후 창 매크로가 보이지 않으면 아래 창을 확인하세요.
프로젝트: 테이블에서 파일을 직접 읽기. 완료 "모서리"와 해당 좌표를 일치시키기. 완료 물질과 밀도의 연관성 전역 객체보다는 요소에 대한 기울기 완료 FreeCAD 인터페이스에 바로 박어 넣기 완료
버전
ver "1.30c" 2025/01/28 : replace connect comboBox for Arch Linux
ver 1.21, 2019년 4월 16일 Py 3... Qt 5... FreeCAD 0.15~0.19 릴리스에 대한 최적화
ver 1.20, 2018년 1월 29일 최적화
ver 1.19, 2018년 1월 20일 원하는 경우 객체의 모든 요소를 감지하는 데 사용할 체크박스를 만듭니다. 매크로가 더 빠릅니다. 최적화
ver 1.18 , 2017년 12월 19일 ...
ver 1.17c , 2017년 12월 14일 한 프로젝트에서 주어진 좌표로 다른 프로젝트에서 평면을 생성하고 "FCInfo"를 "__title__"로 바꿉니다.
ver 1.17b , 2017년 12월 13일 FCTreeView를 FCInfo로 약간 수정
ver 1.17 , 2017년 12월 12일 pinq의 관성 모멘트(mm 및 kg) 업그레이드 추가 FCMacro 및 조립 관성 모멘트, 평면, 축, 점 생성 및 스프레드시트에 대한 옵션 구분 기호 추가
ver 1.16 , 2017년 6월 21일 제어 높이 정책(여기서는 PointSize 8)과 창을 오른쪽 또는 왼쪽으로 위치시키는 체크박스를 추가했습니다.
ver 1.15 , 2015년 12월 19일 PyQt4 옵션 억제 참조, 보고서 보기에서 정보 편집을 위한 체크박스 추가
ver 1.14 , 2014년 8월 4 PyQt4와 PySide를 교체하고 PySide에 표시되지 않는 도구 설명을 수정하고 fg를 추가했습니다.
ver 1.13 , 2014년 7월 27일 FCInfo_en_Ver_1-12_Docked.FCMacro를 FCInfo_en_Ver_1-13_Docked.FCMacro로 교체하여 PyQt4 및 PySide를 허용합니다.
ver 1.12 , 2014년 10월 3일 도구설 추가
ver 1.11 , 2014년 3월 4일 µm, nm, pm, fm, µg, ng, pg, percent 추가 , 보석의 질량단위를 "cd"에서 "ct"로 수정, 표지 내부 이름을 표시, 복합 형상에서 XY YZ ZX각도의 계산오류 수정, FreeCAD에서 도킹 가능한 창
ver 1.10b , 12013년 11월 19일 스크롤바 외부 버튼과 창 크기 차단
ver 1.10 , 2013년 11월 18일 스크롤바 생성
ver 1.08b , 2013년 10월 11일 영어 번역 단위, 표에 나열된 면의 면적을 표시하기 위한 오류 수정 및 "print"를 "App.Console.PrintMessage"로 교체
ver 1.09, 2013년 4월 11일 Windows 및 Linux에서 완벽하게 작동합니다(Linux에서는 오류로 인해 문자: ² ³ ° "순서가 범위(128)에 없습니")
ver 1.08 , 2013년 10월 24 (저장된 파일에서) 100개의 개체를 표시하는 상단 '면'과 '모서'의 수정
ver 1.07 , 2013년 11월 10일은 "면"과 그 좌표의 일치.
ver 1.06 , 2013년 9월 22일 "모서리"와 해당 좌표의 일치, 전역 객체보다는 요소에 대한 기울
ver 1.05 , 2013년 9월 17일 스프레드시트 아이콘, 프랑스어 변환 배럴, 좌표 대신 전체 치수 표시가 추가.
ver 1.04 , 2013년 11월 9일: 테이블에서 파일을 직접 읽.
ver 1.03 , 2013년 9월 9일: 보기 보고서에서 더 명확하게 표시되고 "typeObject = sel[0].Shape.ShapeType"으로 대체됨