Std New/ja: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
 
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
{{Docnav
|
|
Line 19: Line 20:
</div>
</div>


<span id="Description"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
====概要====
====概要====
Line 29: Line 31:


# There are several ways to invoke the command:
# There are several ways to invoke the command:
#* Press the {{Button|[[Image:Std_New.svg|16px]] [[Std_New|Std New]]}} button.
#* Press the {{Button|[[Image:Std_New.svg|16px]] [[Std_New|New]]}} button.
#* Select the {{MenuCommand|File → [[Image:Std_New.svg|16px]] New}} option from the menu.
#* Select the {{MenuCommand|File → [[Image:Std_New.svg|16px]] New}} option from the menu.
#* Use the keyboard shortcut: {{KEY|Ctrl}}+{{KEY|N}}.
#* Use the keyboard shortcut: {{KEY|Ctrl}}+{{KEY|N}}.
Line 35: Line 37:
==Preferences==
==Preferences==


See also: [[Preferences_Editor|Preferences Editor]].
* FreeCAD will create a new document at start up if {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → Document → CreateNewDoc}} is set to {{TRUE}}. This setting can also be changed in the [[Preferences_Editor#Document|Preferences Editor]].

* Some document properties: author names, company name and license information, can be preset in the [[Preferences Editor#Document|Preferences Editor]].
* By default FreeCAD start without a new document. Check the {{MenuCommand|Edit → Preferences... → General → Document → Create new document at start up}} option to change this behavior.
* Some document properties: author name, company name and license information, can be preset: {{MenuCommand|Edit Preferences... → General → Document → Authoring and License}}.


==Properties==
==Properties==
Line 42: Line 46:
Most properties can also be changed in the dialog box of the [[Std_ProjectInfo|Std ProjectInfo]] command.
Most properties can also be changed in the dialog box of the [[Std_ProjectInfo|Std ProjectInfo]] command.


===Data===
* {{PropertyData|Comment}}: Any comment that may apply.

* {{PropertyData|Company}}: Company name. {{Emphasis|Can be preset}}.
{{TitleProperty|Base}}
* {{PropertyData|Created By}}: Author name. {{Emphasis|Can be preset}}.

* {{PropertyData|Creation Date}}: Automatic date stamp. {{Emphasis|Not editable}}.
* {{PropertyData|Comment|String}}: Any comment that may apply.
* {{PropertyData|File Name}}: The full path of the file. Blank if the document has not been saved. {{Emphasis|Not editable}}.
* {{PropertyData|Id}}: Not implemented yet.
* {{PropertyData|Company|String}}: Company name.
* {{PropertyData|Created By|String}}: Author name.
* {{PropertyData|Label}}: The name that will appear in the [[Tree_view|Tree view]]. By default the name of the document.
* {{PropertyData|Last Modified By}}: Author name. {{Emphasis|Can be preset}}.
* {{PropertyData|Creation Date|String}}: Automatic date stamp (read-only).
* {{PropertyData|Last Modified Date}}: Automatic date stamp. {{Emphasis|Not editable}}.
* {{PropertyData|File Name|String}}: The full path of the file. Blank if the document has not been saved (read-only).
* {{PropertyData|License}}: License type. {{Emphasis|Can be preset}}.
* {{PropertyData|Id|String}}: Not implemented yet.
* {{PropertyData|Label|String}}: The name that will appear in the [[Tree_view|Tree view]]. Replaced by the name of the document after reopening.
* {{PropertyData|License URL}}: License URL. {{Emphasis|Can be preset}}.
* {{PropertyData|Last Modified By|String}}: Author name.
* {{PropertyData|Show Hidden}}: If true, items that have been hidden in the [[Tree_view|Tree view]] will be displayed anyway. Hiding items in the tree can be useful when working on larger models.
* {{PropertyData|Tip}}: Not implemented yet.
* {{PropertyData|Last Modified Date|String}}: Automatic date stamp (read-only).
* {{PropertyData|Tip Name}}: Not implemented yet.
* {{PropertyData|License|String}}: License type.
* {{PropertyData|Transient Dir}}: The transient directory used for recovery data. {{Emphasis|Not editable}}.
* {{PropertyData|License URL|String}}: License URL.
* {{PropertyData|Material|Map|Hidden}}: Map with material properties.
* {{PropertyData|Meta|Map|Hidden}}: Map with additional meta information.
* {{PropertyData|Show Hidden|Bool}}: If true, items that have been hidden in the [[Tree_view|Tree view]] will be displayed anyway. Hiding items in the tree can be useful when working on larger models.
* {{PropertyData|Tip|Link}}: Not implemented yet.
* {{PropertyData|Tip Name|String}}: Not implemented yet.
* {{PropertyData|Transient Dir|String}}: The transient directory used for recovery data (read-only).
* {{PropertyData|Uid|UUID|Hidden}}: UUID of the document (read-only).
* {{PropertyData|Unit System|Enumeration}}: The document unit system. Initial value depends on the [[Preferences_Editor#General_2|Default unit system]]. {{Version|1.0}}


==Scripting==
==Scripting==
Line 96: Line 108:
}}
}}


{{Std Base navi{{#translation:}}}}
{{Std_Base_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 11:54, 21 April 2024

Std_New

メニューの場所
File -> New
ワークベンチ
All
デフォルトのショートカット
None
バージョンで導入
-
も参照してください
Std_Open,Std_Import

概要

新しい空のドキュメントを作成します。Edit -> Preferences -> General -> Documentタブの該当する設定にチェックをいれることでFreeCADの起動時に自動的に新しい空のドキュメントが作成されるように設定することも可能です。

The Std New command creates a new empty document and makes it the active document.

Usage

  1. There are several ways to invoke the command:
    • Press the New button.
    • Select the File → New option from the menu.
    • Use the keyboard shortcut: Ctrl+N.

Preferences

See also: Preferences Editor.

  • By default FreeCAD start without a new document. Check the Edit → Preferences... → General → Document → Create new document at start up option to change this behavior.
  • Some document properties: author name, company name and license information, can be preset: Edit → Preferences... → General → Document → Authoring and License.

Properties

Most properties can also be changed in the dialog box of the Std ProjectInfo command.

Data

Base

  • データComment (String): Any comment that may apply.
  • データCompany (String): Company name.
  • データCreated By (String): Author name.
  • データCreation Date (String): Automatic date stamp (read-only).
  • データFile Name (String): The full path of the file. Blank if the document has not been saved (read-only).
  • データId (String): Not implemented yet.
  • データLabel (String): The name that will appear in the Tree view. Replaced by the name of the document after reopening.
  • データLast Modified By (String): Author name.
  • データLast Modified Date (String): Automatic date stamp (read-only).
  • データLicense (String): License type.
  • データLicense URL (String): License URL.
  • データ (Hidden)Material (Map): Map with material properties.
  • データ (Hidden)Meta (Map): Map with additional meta information.
  • データShow Hidden (Bool): If true, items that have been hidden in the Tree view will be displayed anyway. Hiding items in the tree can be useful when working on larger models.
  • データTip (Link): Not implemented yet.
  • データTip Name (String): Not implemented yet.
  • データTransient Dir (String): The transient directory used for recovery data (read-only).
  • データ (Hidden)Uid (UUID): UUID of the document (read-only).
  • データUnit System (Enumeration): The document unit system. Initial value depends on the Default unit system. introduced in version 1.0

Scripting

See also: FreeCAD Scripting Basics.

To create a new document use the newDocument([name], [hidden=False]) method of the FreeCAD application. The document name must be unique, which is checked automatically. If no name is supplied, the document will be named "Untitled". If hidden=True is used, the new document won't be displayed in the GUI and no tab will appear for it.

import FreeCAD
from pathlib import Path

# The folder and filename we will use:
fld = 'D:/testfiles/'
fnm = fld + 'test.FCStd'

# Make sure fld exists:
Path(fld).mkdir(parents=True, exist_ok=True)

doc = FreeCAD.newDocument()
doc.saveAs(fnm)

FreeCAD.closeDocument(doc.Name)

doc = FreeCAD.open(fnm)
doc.save()

FreeCAD.closeDocument(doc.Name)