I created a 3d view collecting the view data, but the direction of the camera view created is the opposite, could someone help me?
Gelöst! Gehe zur Lösung
Click to place your camera and then click where you would like it to point. Adjust the extents in the view that is created.
you can try to refer to this LINK and see if helps. thanks
In the camera view, select the crop box, while selected, goto the plan view from project browser. In that case you will find the camera is visible in the plan view and it's direction is changed. then rotate it.
Mostafa Elashmawy
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
I have this code :
/ Camera Creation
List<View3D> all3DViews = new FilteredElementCollector(doc).OfClass(typeof(View3D)).Cast<View3D>().ToList();
var collector = new FilteredElementCollector(doc);
var viewFamilyType = collector.OfClass(typeof(ViewFamilyType)).Cast<ViewFamilyType>()
.FirstOrDefault(x => x.ViewFamily == ViewFamily.ThreeDimensional);
using (Transaction ttNew = new Transaction(doc, "camera"))
{
ttNew.Start();
var view3D = View3D.CreatePerspective(
doc, viewFamilyType.Id);
view3D.SetOrientation(new ViewOrientation3D(
view.Origin, view.UpDirection,view.ViewDirection));
I have this code:
// Camera Creation
List<View3D> all3DViews = new FilteredElementCollector(doc).OfClass(typeof(View3D)).Cast<View3D>().ToList();
var collector = new FilteredElementCollector(doc);
var viewFamilyType = collector.OfClass(typeof(ViewFamilyType)).Cast<ViewFamilyType>()
.FirstOrDefault(x => x.ViewFamily == ViewFamily.ThreeDimensional);
using (Transaction ttNew = new Transaction(doc, "camera"))
{
ttNew.Start();
var view3D = View3D.CreatePerspective(
doc, viewFamilyType.Id);
view3D.SetOrientation(new ViewOrientation3D(
view.Origin, view.UpDirection,view.ViewDirection));
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.