AutoCAD .NET :: Rotating A Block Into New Orientation In 3D

Apr 21, 2013

I am trying to write a tool using the .NET API (C#) that will allow me to select a block that currently exists in the drawing, and then select a line, and the tool would calculate the necessary axis of rotation and the amount of rotation to rotate the block into the same orientation as the line. Both the block and the line might be skewed in 3 dimensions. The use case for a tool like this might be for drawing a tubular space frame. I would first define nodes and center lines for the frame, and then have a block of a standard structural member. I want to insert that member multiple times and "snap" it to a center line. I tried using Alignment Parameters.

However, these don't seem to work in all cases. I need to (or rather, SHOULD be able to) create a tool that allows me to re-align an existing block currently inserted into the drawing into a new orientation in 3D using any arbitrary line as a reference line. Clearly this can be done because it is done all the time in Inventor. A similar feature seems to not exist in Autocad.

In order to do this I believe I need to choose some vector to use as a reference within the block. For example, I might choose the BlockReference.BlockTransform.CoordinateSystem3d.Xaxis, and then rotate this vector so that it is equal to whatever reference line I have chosen. The problem I am encountering (and that I think many have encountered) is in understanding how to use the BlockTransform correctly to arrive at the points I need to do the necessary vector calculations to determine the axis of rotation and the degree of rotation such that I can call the BlockReference.TransformBy() method correctly and reliably. 

Many posts say to "Use BlockTransform" but then don't go into any detail. There seem to me many pitfalls around when one can use the BlockTransform matrix, and on which objects, and what the results are likely to be based on one's current UCS etc.

View 4 Replies


ADVERTISEMENT

Maya Animation :: Why Joint Orientation / Rotational Axis After Rotating Bone / Freezing Transformation

Nov 21, 2013

I want to know after rigging why should i orient joint in the attribute editor using the channel "joint orientation". Because i can easily fix the rotational axis after rotating the bone and freezing transformation.

View 2 Replies View Related

AutoCad :: Control Orientation Of Dynamic Block?

Jul 26, 2013

I have been working with dynamic blocks - windows and doors - and I have trouble getting them into the right orientation and keeping them there.

My major problem is that when I try to move the hinge of the door to the door jamb the block orients itself any way it wants to go.

View 4 Replies View Related

AutoCAD 2010 :: Measure / Divide And Block Orientation

Jun 1, 2010

For once I have to place many asymetric objects uniformly with Alignment along a convex circular arc (2D). So I try Measure or Divide using my Block but it flips my Block so it is aligned with the inside of the curve (closest to the curve centre) not the outside and the blocks are turned upside down. If I draw an arc concave up it plots OK. If I draw a Spline (single curve or reverse curve (S curve) in my desired orientation, it also plots OK.

I have tried all combinations of UCS but to no avail. The block is not dynamic so there has not been any Alignment set.

View 9 Replies View Related

AutoCAD Civil 3D :: Block Attributes - Match Orientation To View

Mar 8, 2012

Trying to make a rotateable block with non-rotating text (i.e. full-time "match orientation to view" text).

C3D2010
Win 7
Civil 3D 2012
Windows 7 Enterprise SP1
Dell Precision T3400
(Q9550 @ 2.83 GHz)
8GB RAM
Nvidia Quadro GTX 650 Ti BOOST

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Creating (arrow) Block With Two Points For Positioning And Orientation

Jul 13, 2013

I'm trying to create a model of arrow with which I could place in drawing in any length and orientation I want with lisp. I was imaging to place two point on this arrow and by placing the two points on my drawing, the length and orientation of the arrow would be define.

I'm trying for hours to create it and my grip for polar stretching don't stay still on my arrow (suppose to be on the peak but go far if I stretch it).

View 9 Replies View Related

AutoCad :: Dynamic Block - Rotating Attributes

Oct 17, 2012

I want to rotate my block so that the attribute rotates with it but stays the correct way around so it is still readable and no upside down text. So far I can only rotate the block but the attribute won't rotate with it at all.

Is there a step I have missed out?

View 2 Replies View Related

AutoCad :: Rotating Text In A Dynamic Block

Jul 11, 2011

I am working on creating a dynamic block library and am having several problems with text within my blocks. For example... I am working on a North Arrow block and would like the text to rotate with my block, but I want the text to remain right-side up. When I rotate the arrow past 180 degrees the text is upsidedown.

View 1 Replies View Related

AutoCad :: Rotating Text In Dynamic Block?

Aug 30, 2011

I have attached a basic PTZ block and what I want it to do is when I rotate the block past a certain point +/-90 degrees the text rotate within the rectangle so it's never upside down.

Can I get any direction on what route I need to take to get this done?

View 1 Replies View Related

AutoCAD Dynamic Blocks :: Rotating And Updating A Field Within A Block?

Jun 5, 2007

Attached is my latest block that I'm working on. how to keep a field readable (horizontal) when rotated. What I need to do to update a field that is linked to an attribute when the attribute value is changed? The UPDATEFIELD command does not seem to work on it for me.

View 9 Replies View Related

AutoCad :: Rotating / Stretching Dynamic Block Along 45 Degree Angle

May 7, 2010

I'm trying to create a dynamic block for plywood. I have the stretch parameter working so that I can stretch the plywood to the needed length. I also have set a rotation parameter based on the various roof pitches that we use. The problem is I would like to be able to rotate the sheathing to a 45 degree angle and then stretch along the 45 degree angle. Once I rotate the sheathing the stretch does not follow the rotation angle. I have attached the file.

View 9 Replies View Related

AutoCAD Civil 3D :: Dynamic Block With Text Inserted Into Drawing Show Text Orientation Matched To Layout

Apr 17, 2013

Is it possible to have a dynamic block with text which, when inserted into a drawing, will show the text orientation matched to the layout? I have a non-dynamic block which is simply a donut and a piece of text. When I insert it into a drawing, the text orientation will change to suit the orientation of the layout. I created another block with the same entities but I also added a couple of lines extending out from the center of the donut. I added stretch and rotation actions in order to rotate and stretch the lines. I also gave the block visibility states so that either one or two lines would appear (the block is a utility pole,by the way, with the lines representing guy wires). When I insert the dynamic block into a drawing, I cannot get the text to match the orientation of the viewport. I've tried changing different combinations of settings but the text won't appear horizontal.

The two blocks I mentioned above are inserted into one file with a number of other blocks. When I check the properties of the non-dynamic block, the "match orientation" is set to YES. I cannot, however, change the "match to orientation" setting to YES on the dynamic block. Is this simply because it is a dynamic block or am I missing something? I don't create a lot of dynamic blocks and therefore I am not a wizard at it so I am assuming I am doing something wrong.

View 1 Replies View Related

AutoCAD .NET :: How To Know Orientation Of Polyline

Feb 19, 2013

A query, any of you know any method or function that tells me the orientation of a polyline, if it is clockwise or counter-clockwise

View 9 Replies View Related

AutoCAD LT :: IGES File Orientation

Jan 21, 2013

I was given an iges file of a 3d structure that needs to be layed out in 2d. I was able to import the iges file into inventor and then output a dwg file. I then tried to import this dwg file into autocad to draw the 2d layout, but I am unable to copy it into autocad in the correct orientation. I have the correct orientation when i produce the dwg files from inventor. how can i import them into a single dwg file at the correct orientation?

View 3 Replies View Related

AutoCAD LT :: Orientation Of Text In Layout?

Sep 15, 2013

When i add text to a layout it plots vertical not horizontal as add and shown in the layout.

View 4 Replies View Related

AutoCAD Map 3D :: Change Drawing Orientation

Aug 15, 2011

Is there anyway of changing the drawing orientation without using the pagesetup command ?

View 2 Replies View Related

AutoCAD Inventor :: Get The Right Orientation On 2D Export?

May 1, 2013

but what are the proper workflow when using inventer models in AUTOCAD.

When I import DWG og iam I get the front view and not top view..

Also a subasemmbly has lost the rotation made in the main assembly..

View 9 Replies View Related

AutoCAD Inventor :: First Sketch Orientation

Jun 10, 2013

Why is it when I select the Top (XZ Plane) does the sketch orient itself so TOP is read upside down? Subsequent Sketches on a TOP face yields expected results.

And it is also true that it if I select Right (XY) the sketch orients itself so RIGHT reads top to bottom? and if I rotate the cube orientation so TOP is truly on top, the Constrain Axis' are off by 90º? yet if I subsequently select the RIGHT face for a sketch, it yields expected results (RIGHT reads from left to right).

This cannot be the way it is supposed to be. it although has been this way for may versions.

M6700, Nvidia K3000M, 32GB, 512 SSD
Win 7 Ultimate 64
Inventor 2014

View 6 Replies View Related

AutoCAD LT :: Orientation Of Drawing In Layout

Mar 15, 2011

A client gave us a file in which the drawing in model space has an orientation wherein the N is in positive y-axis. But if I go to layout (viewport), the orientation of the drawing is different, N is 45 deg from the x-axis. How does the orientation of a drawing in layout (viewport) changed without changing the original orientation of the drawing in model space?

View 9 Replies View Related

AutoCad :: Orientation Of Holes On PCD In Isometric

Sep 14, 2013

You can control the orientation of holes on a PCD while working in Isometric, but it's an intricate and tedious piece of projection.

View 9 Replies View Related

AutoCad :: How To Model Object In Orientation

Jan 30, 2012

It's been awhile since I've had to do orthographic projection. Is it frowned upon to model an object in an orientation other than the intended installation orientation?

View 6 Replies View Related

AutoCAD Inventor :: Change Orientation Of Sketch

Dec 9, 2012

I am just wondering how to change the orientation of a sketch in VB.net.  I have no worries in VBA but the command to set the orientation and origin don't seem to work in VB.net.

View 4 Replies View Related

AutoCAD Inventor :: How To Get Orientation Angle Of Occurrence Using VBA

Nov 6, 2012

how to get the orientation angle of an occurrence using VBA?

View 2 Replies View Related

AutoCAD 2010 :: How To Change Orientation Of Drawing In 2D

May 17, 2013

How do I change the orientation of my drawing in 2D cad. For example so that north is set at 0 deg. south is set at 180 deg. etc.

View 1 Replies View Related

AutoCAD Inventor :: Print Orientation In ILogic

Oct 17, 2012

INVENTOR 2012 SP 2

I have an .idw file with many sheets, the sheets are a mix of landscape and portrait, when i print all sheets i can not control if the prints all come out in the correct orientation on the paper. For example, see attached pic., this sheet needs to be rotated to fit on paper.

View 2 Replies View Related

AutoCAD VB :: Blocks And Solids Orientation In 3D Space

Aug 30, 2011

In VBA environment I'm seeking a method to detect the orientation of blocs and solids in 3D space through the X,Y and Z axis.

There is a object.method? or a procedure?

View 1 Replies View Related

AutoCAD 2010 :: How To Keep Location And Orientation Of Text

Apr 3, 2012

How to keep the location and orientation of the “text” to the left of the “mirrored” elements?
 
In the screenshots below, I wanted to mirror the drawing but still I need to have the “text” to the left of the mirrored objects with the same settings and orientation.
 
Is there a way to do that?
 
To overcome this particular need, I mirror the drawing in the regular way then playing abit to let the text appears the way I like them to be.

Software: AutoCAD 2014, AutoCAD C3D, AutoCAD M3D, Revit
Windows 7 (Ultimate 64 bits),
Firefox 20.0,
Kaspersky 2013.

View 1 Replies View Related

AutoCad :: Automate Page Orientation When Plotting

Jun 17, 2011

Is there a way to automate the page orientation when plotting. Each time when doing pdf, I have to select portrait versus landscape through I believe that 297x210 or when width>height window selection could already infer a landscape selection to the program.

Also with respect to pdf printing: Is there a way to define a path for all the pdfs to go and to use the layout name as a prefix for the pdf. For additional info, I use cute pdf.

View 7 Replies View Related

AutoCad 2D :: Txt Orientation Matched - Without Annotation Scales

Mar 14, 2013

How to make txt orientation match layout without also having annotative scales. I need the txt to be a fixed size according to other drawing objects in different viewports -with different scales - and with different orientation.

View 3 Replies View Related

AutoCAD 2013 :: How To Select / Drag Map And Wall Orientation

Jul 17, 2013

I have used Autodesk products in the past, but I have never had this much trouble making a single wall. There are no scroll bars to move my view in the blue prints, keyboard arrows don't work, and there appears to be no way to change the cursor type so I can select and drag the viewing area. Is there some trick to it? When I drag the mouse it just highlights everything. This is especially annoying when I am just trying to change the orientation to see what is already made.

I am trying to begin with a very simple project: A deck. All I want to do is draw two original brick walls and then begin with a wood frame construction to place against it, but I also can't even seem to make a single right angle with this. When one wall length is finished it wants to position itself at 15 degre angles, but not in relation to the wall it is connected to. It sets those angles in relation to the compass direction which results in an inability to make even a single square. This means that even though the original wall I am building onto faces a South west 340 degree direction I pretty much have to disregard the presence of a compass and assume North is "top" which is pretty sloppy and makes me question why a compass is even present.

With a north orientation I can get right-angles without any problems, but the mouse is too sensitive and if I type in a length before clicking to create the wall the size ends up much longer than what I define. I can create it, select it, and then define the length, but I can't seem to define which side it expands from and I can't seem to find a toggle to keep a connected wall snapped in place or even to manually move that wall.

Also: When attempting to insert an opening into the wall at a specific point in the wall there appears to be no option to manually define (with text) it's position in that wall. There is a graphical method, but no matter where I put it on that wall it snaps to the far end. It's an existing wall with an existing opening.

View 2 Replies View Related

AutoCAD Inventor :: Cutting Slots And Maintaining Orientation

Apr 1, 2013

I need to cut slots in a circular pattern around a flange ring, but I also need the slots to maintain their orientation so the slots are straight.

What I am atempting is to create a shim that once cut can be slid between 2 flange rings and not have to take the bolts all the way out.

I attached a pic of what I am trying to do.  The slot has to stay in that orientation, yet patterned around the circle.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved