Fix typos, fix wronng paths to resources
This commit is contained in:
parent
e67a6e518c
commit
483131e628
|
@ -1756,7 +1756,7 @@ void PropertyMaterial::setSpecularColor(const Color& col)
|
||||||
hasSetValue();
|
hasSetValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PropertyMaterial::setEmmisiveColor(const Color& col)
|
void PropertyMaterial::setEmissiveColor(const Color& col)
|
||||||
{
|
{
|
||||||
aboutToSetValue();
|
aboutToSetValue();
|
||||||
_cMat.emissiveColor = col;
|
_cMat.emissiveColor = col;
|
||||||
|
|
|
@ -723,7 +723,7 @@ public:
|
||||||
void setAmbientColor(const Color& col);
|
void setAmbientColor(const Color& col);
|
||||||
void setDiffuseColor(const Color& col);
|
void setDiffuseColor(const Color& col);
|
||||||
void setSpecularColor(const Color& col);
|
void setSpecularColor(const Color& col);
|
||||||
void setEmmisiveColor(const Color& col);
|
void setEmissiveColor(const Color& col);
|
||||||
void setShininess(float);
|
void setShininess(float);
|
||||||
void setTransparency(float);
|
void setTransparency(float);
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
# include <TopoDS_Solid.hxx>
|
# include <TopoDS_Solid.hxx>
|
||||||
# include <TopoDS_Compound.hxx>
|
# include <TopoDS_Compound.hxx>
|
||||||
# include <TopExp_Explorer.hxx>
|
# include <TopExp_Explorer.hxx>
|
||||||
|
# include <sstream>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <Handle_XSControl_WorkSession.hxx>
|
#include <Handle_XSControl_WorkSession.hxx>
|
||||||
|
@ -89,9 +90,10 @@ int Part::ImportStepParts(App::Document *pcDoc, const char* Name)
|
||||||
TopoDS_Shape aShape;
|
TopoDS_Shape aShape;
|
||||||
Base::FileInfo fi(Name);
|
Base::FileInfo fi(Name);
|
||||||
|
|
||||||
if (!fi.isReadable()) {
|
if (!fi.exists()) {
|
||||||
Base::Console().Log("ImportStep() not able to open %s!\n",Name);
|
std::stringstream str;
|
||||||
throw Base::Exception("Cannot open STEP file");
|
str << "File '" << Name << "' does not exist!";
|
||||||
|
throw Base::Exception(str.str().c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (aReader.ReadFile((Standard_CString)Name) != IFSelect_RetDone) {
|
if (aReader.ReadFile((Standard_CString)Name) != IFSelect_RetDone) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import FreeCAD,FreeCADGui
|
import FreeCAD,FreeCADGui
|
||||||
FreeCADGui.activateWorkbench("DrawingWorkbench")
|
FreeCADGui.activateWorkbench("DrawingWorkbench")
|
||||||
FreeCAD.open(FreeCAD.getResourceDir()+"data/examples/DrawingExample.FCStd")
|
FreeCAD.open(FreeCAD.getResourceDir()+"examples/DrawingExample.FCStd")
|
||||||
FreeCADGui.SendMsgToActiveView("ViewFit")
|
FreeCADGui.SendMsgToActiveView("ViewFit")
|
||||||
FreeCADGui.activeDocument().activeView().viewAxometric()
|
FreeCADGui.activeDocument().activeView().viewAxometric()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import FreeCAD,FreeCADGui
|
import FreeCAD,FreeCADGui
|
||||||
FreeCAD.open(FreeCAD.getResourceDir()+"data/examples/PartDesignExample.FCStd")
|
FreeCAD.open(FreeCAD.getResourceDir()+"examples/PartDesignExample.FCStd")
|
||||||
FreeCADGui.SendMsgToActiveView("ViewFit")
|
FreeCADGui.SendMsgToActiveView("ViewFit")
|
||||||
FreeCADGui.activeDocument().activeView().viewAxometric()
|
FreeCADGui.activeDocument().activeView().viewAxometric()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import FreeCAD,FreeCADGui
|
import FreeCAD,FreeCADGui
|
||||||
FreeCAD.open(FreeCAD.getResourceDir()+"data/examples/RobotExample.FCStd")
|
FreeCAD.open(FreeCAD.getResourceDir()+"examples/RobotExample.FCStd")
|
||||||
FreeCADGui.SendMsgToActiveView("ViewFit")
|
FreeCADGui.SendMsgToActiveView("ViewFit")
|
||||||
FreeCADGui.activeDocument().activeView().viewAxometric()
|
FreeCADGui.activeDocument().activeView().viewAxometric()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import FreeCAD,FreeCADGui,Part
|
import FreeCAD,FreeCADGui,Part
|
||||||
Part.open(FreeCAD.getResourceDir()+"data/examples/Schenkel.stp")
|
Part.open(FreeCAD.getResourceDir()+"examples/Schenkel.stp")
|
||||||
FreeCADGui.SendMsgToActiveView("ViewFit")
|
FreeCADGui.SendMsgToActiveView("ViewFit")
|
||||||
Gui.activeDocument().activeView().viewAxometric()
|
Gui.activeDocument().activeView().viewAxometric()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user