AutoCAD .NET :: How To Create OLE Object With Ole2frame
Oct 24, 2011
i want to create an ole object linked with a bmp file.but when i create the ole2frame object with the code "ole2frame obj = new ole2frame();",i don't know what to do next.
Let's say, for example, that i create an object with a size, then i create other objects with other sizes.
When I try to see the size of the first object created it says that has the same size like the other objects which have other sizes (it's even obvius cause they r bigger on my screen:D).With all the other versions of Corel i didn't had those problems, but X5 does that.
I want to create a mold around my object that is supposed to be a sea shell so I can cast it with a metel pewter castor machine
I have made the object but not the mold can I create a mold around the object? The result should be similar to the picture below but I don`t know how to make a mold around my object. The mold could be a double mold consisting of two pieces of.
I want to create a group for the object be selected. but the following code doesn't work.
[CommandMethod("gr")] public static void SelectObjectsOnscreen() { //Get the current document and database Document acDoc = Application.DocumentManager.MdiActiveDocument; Database acCurDb = acDoc.Database;
I am trying to draw a boom for a sprayer and I have the 3 main tubes extruded. I need to draw plates every 48 inches in between the main tubes. I wanted to draw each plate to make sure it would fit and then use the drawings to cut the plates on my CNC plasma cutter. However, I can not figure out how to draw on the same plane right around the main tubes. I have a screen shot blow showing the tubes and I have a small 2D sketch similar to the plates I need to draw in every 48 inches to the right. The plates will be perpendicular to the top tube.
I trying, trying to create parametrization on 3d simple object - box. And it is no result. Why it works on 2d drawing but doesn't work on 3d... Can I someway link 3d object to 3d object? Just like in Inventor for example.
I have an alignment that I want to create a pipe network from using the "Create pipe network from object" command. I am able to create the pipe network, but it only places a structure at the beginning of the alignment. How do I get it to create structures at all of the vertices?
I use the create feature lines from object command from the Survey pull-down menu and choose a "Associate figure survey point to vertices" I get a survey figure that uses point elevations at some vertices and 0 at others. However, if I use Create Feature Lines from Objects under the Grading pull-down, and use a surface made of just the points, I get a a figure with all the correct elevations.
I checked the vertices where the survey figure drops to 0 and the line is snapped to the point, distance = 0.0000. What gives?
I created an enclosed "object" adding break lines to two different surfaces.
The blue surface shown on the attached drawing is a set of break lines added to "Surface A" and then the red is the other set of break lines added to "Surface B". I have already generated the volume enclosed within the surfaces by doing a surface to surface volume calculation.
My Question:I want to combine the enclosed volume created by Surface A & Surface B into a 3D "Block" that give me the volume information.
Is there a way to import a pdf file into ACAD? I have tried inserting an OLE image but I get an error "Failed to creat object. Make sure the object is entered in the system registry."
I build a program to "*.dll" by Visual Basic 6.0+AutoCad2006,when it runs in Cad VBA Environment,if it gets error,I try to get start again,It shows message:"Rutime Error 429:ActiveX Component Can't Create Object",and then message "440:Automation error".But sometimes,it works all right.Thats troubled me for a long time,I can't find a reason, so can't improve my program.
How to create a Circular Pattern of the Solid Object by VBA. I tried it by calculation Polar Transformations but was unsuccessful.
Then Rotated the complete Solid Object which changed original location. Is there any way i can Change the Angle and Mirror instead of Making circular pattern.
Using C3d 2013. I am looking for a way to place the deflection angle of the PI of an Alignment in the label of a structure part that references said alignment. But PIs aren't an option when I select Reference Text type. Common sense tells me it would be under Alignments, but none of the PI data is an option of the Contents' Text Component Editor. I couldn't find it under any of the other Reference Text types either. I can pull the station value from the referenced alignment, is there a way to get it to tell me the deflection angle at the PI it sits on? Or even the difference in the instantaneous direction just before and just after the part?
I know listing the deflection angle of a PI is possible, as I have seen it in several examples of labeling alignments. I just want to place it in the label of other objects.who can tell me how to display LT (to represent left) and RT (to represent right) when the deflection is positive or negative respectively.
Is there a way to create a 3D object such as a motor, by using 2D sections from multiple view points? For instance, I have a side view, front view, and rear view of a motor in 2D but I would like the motor in 3D. Besides cutting one of the views in half and revolving around it or push/pulling an enclosed area a certain distance for each individual feature of the motor or extruding many faces is there a QUICK and SIMPLE way to do this?
Any way to create a parcel from an object (closed polyline) and populate the parcel with Object Data from the polyline?
I have imported a .shp file into a drawing and the result is many closed polylines with properties similar to the attached image. I would like to bring this data into a parcel object for labeling purposes.
Press/pull has been working fine up until now. When I try to press/pull a boundary, it creates an invisible extrusion rather than cutting into the object.
Basically I have drawn some lines, arcs and splines in the 3D space, then I created surfaces between these lines, arcs and splines, thus I created an 'object' which is defined by all these surfaces.
And what I want to do now is to fill up the empty space and basically convert it into a 3D solid object.
Another example would be a loft 'object', and it creates only a surface, so may I somehow fill up the empty space and turn it into an object?
I'm trying to create a solid object that can be used for injection molding. My office has Inventor, but I'm only familiar with 3D Max. If I create the object with Nurbs in 3D Max, can I export it so that Inventor reads it as a solid object, and if so, how?
I created a vb.net stand alone program. Used the following to create the CAD object:
CreateObject("Autocad.Application")
for doing some batch job.
Then I deploy it to a group of computers. It is working fine for some computers and others failed with either "actvieX can't create object" or "call rejected by callee". All computers has AutoCAD full version(Mechanical or Electrical) installed.
I am working on creating an alignment from a single polyline. The polyline, which was originally created in Carlson 2012, is a flat polyline that is about 1200 feet in length. When I select it with create alignment from object, it accepts it and seems to work. For some reason though, the stationing is way off --- e.g. the true 50' mark is showing up as 0+04.17 which results in an end station of 0+99.31 on a 1191' polyline.
edit> I also have tried this with a brand new polyline I created in civil3d, same issue.
Basically I have 3dpolylines and some Splines. I would like to create a road file that uses the geometry of these objects to create a single line/crest of road file.
I have centerline data from SHP file that I can either import or attach to. Has a few lines of object data with it including a centerline of road name. Each one unique. When I attach to the data, I can then "join" with it additional data from a database. When I select a line and look at the properties, it contains both the original object data AND the additional data from the database. SO far So good.
When I edit the style and try to add feature labels only part of the labels come in. I end up with a lot of them with only the letters "text" or just not there. If I right-click on the line and select "Show Data Table" I can confirm that there is data for that label. I find nothing in common with the map features that have labels, or don't have labels. Kind of random.
Question: If I import the SHP file and create object data I need to know if there is a way to "ADD" the rest of my data that is in the database to this object data. If so then I think I could define a Template and label each piece with the block with attributes. Is this possible? OR
Is it possible for me to export to a new SHP file after I have connected to the data (both shp file and database).
I am trying to create a property definition that will display the elevation of a space object. I looked through the automatic properties and did not find anything that looked like the elevation.
I have tried the following but was unable to achieve any success.
RESULT="--" On Error Resume Next Set AcadApp = GetObject(, "AutoCAD.Application") Set Obj = AcadApp.Activedocument.Objectidtoobject("[ObjectID]") RESULT = Obj.elevation
That formula does work if i swap elevation with say height, width,length or any of the properties found in the automatic property list that are a single word. I know the elevation is there I just don't know how to access it.