AutoCAD .NET :: Serialized Custom Object To XRecord Can Not Save DWG

Mar 12, 2012

I have polyline that graphically represents a pipe.  Obviously, the polyline can not contain data for a pipe: size, material, insulationtype, insulationthickness, schedule, etc.  So, I have created a custom object with all of the appropriate properties, methods, events, etc that I need for it to behave as a pipe.  My custom object has a reference to the actual polyline with a Handle property stored as a long(since AutoCAD objects can not be serialized).  I referenced an AU 2008 class by Jeffery Geer (A Pattern for Storing Structured Data in AutoCAD Entities CP401-2) to get me as far as I am.

My object is marked serializable.  I serialize it to binary and attach the binary in 127 byte chunks to the xRecord of the polyline object.However, as soon as I attach this binary xrecord, I get the following message when I try to save the drawing:

"One or more objects in this drawing cannot be saved to the specified format.  The operation was not completed and no file was created”

View 5 Replies


ADVERTISEMENT

AutoCAD .NET :: Update Xrecord Data Attached To NOD Or Object

Jan 24, 2011

Question, Is it possible to update values stored in an xrecord. If not what is the best aproche my goal?

View 1 Replies View Related

CorelDRAW Graphics Suite X6 :: Generate Sequential Serialized Barcodes?

Oct 1, 2013

how to generate serialized barcodes with CorelDRAW X6? I need to be able to  give it a starting number and range and have the barcodes generated automatically on different pages to then be printed using imposition printing.

View 4 Replies View Related

Illustrator :: How To Save Custom Artboard Setup With Custom Document Profile

Nov 1, 2012

Is there a way to save a custom artboard setup with a custom document profile in illustrator cs5? I do technical illustrations and our page size is odd (7.19 x 8.96. It the size that our Framemaker layout is set to.). I have a custom document profile that I use, but I use the grids all the time so that my callouts are spaced out evenly around the art. I would like to have a way to set the artboard up so that the grid will align to the center of the artboard everytime I turn them on. Right now they always start from the top left and when I center art in the center of the page, the grid spacing isn't the same on each side of the art. I just want to be able to open my document profile, turn on my grids, have them start from the center, and I can get down to business. As it is now I have to go into my artboard settings and manually adjust the grid to the center. Small annoyance, but it still annoys me. I have tried to save it a few different ways, but nothing has worked. Maybe there just isn't a way.

View 4 Replies View Related

AutoCAD .NET :: Why Cannot Write The XRecord

Jul 30, 2011

Why the xrecord not save?

 public static void SaveInscCad(ObjectId idEnt, string InscCad) {
Database db = AcadAppServices.Application.DocumentManager.MdiActiveDocument.Database;
using (Transaction tr = db.TransactionManager.StartTransaction())

[Code] ....

View 2 Replies View Related

3ds Max Modeling :: How To Create Custom Object With Custom Parameter

May 25, 2012

My ultimate goal is to have a virtual human model that I can re-size parametrically to reflect real-world measurements. I've used MAX to make architectural models and scenes so I know how to manipulate basic shapes in MAX.

how to make some sort of basic-custom geometric shape and control that shape parametrically, like the built-in "Box", "Sphere" and "Cylinder" objects.

View 1 Replies View Related

AutoCAD .NET :: Attaching XRecord (Extension Dictionary)

Sep 25, 2013

Show me a very simple code-example, how to attach an extension dictionary to an AutoCAD Object and add a XRecord? 

View 3 Replies View Related

AutoCAD .NET :: Find Xrecord Of Entity In Drawing

Oct 27, 2011

How do I get the xrecord attached to an entity in a drawing, without key?

View 1 Replies View Related

AutoCAD .NET :: Modifying XRecord Changes All Xrecords In Dictionary

Sep 6, 2011

I have a dictionary in the NOD with several xrecords. I want to change an entry value in one but the others in the dictionary also get changed. How would they be connected?

This is some simplified code that looks at two xrecords, changes one, then reports the new values. Weird thing is that both xrecords get changed.
 
For i = 1 To 2 XRecId = MyAppDict.GetAt(i) XRec = trans.GetObject(XRecId, OpenMode.ForRead) ed.WriteMessage(vbLf + "XRecord: " & i & " First Entry: " & XRec.Data(0).value) Next XRecId = MyAppDict.GetAt(2) XRec = trans.GetObject(XRecId, OpenMode.ForWrite) Dim data As ResultBuffer = New ResultBuffer(New TypedValue(DxfCode.Int16, 2), New TypedValue(DxfCode.Text, XRec.Data(1).value)) XRec.Data = data For i = 1 To 2 XRecId = MyAppDict.GetAt(i) XRec = trans.GetObject(XRecId, OpenMode.ForRead) ed.WriteMessage(vbLf + "XRecord: " & i & " First Entry: " & XRec.Data(0).value) Next

View 2 Replies View Related

AutoCAD .NET :: Possible To Store String Array To XRecord

Jul 22, 2011

Is it possible to store a String Array to an XRecord?

View 1 Replies View Related

AutoCAD .NET :: Modifying XRecord Within File Header Sub Directories

Jan 8, 2014

As you can see in the attached print screen TheProblen.png I need to modify the XRecord within a file header sub directories.

I have managed to loop through the file directories and sub-directories and even extracted the ResultBuffer of the correct sub-directory.

I now have a ResultBuffer/XRecord that has an array of typed values in it and I need to modify one of the typed values. How do I do it?

View 1 Replies View Related

AutoCAD .NET :: How To Overrule On Custom Object

Aug 9, 2012

I want to change display of custom object using overrule.

First I made a class implements from polyline.

class BoundaryPolyline : Autodesk.AutoCAD.DatabaseServices.Polyline { }
 
Second I made a polylineJig to draw my custom polyline(BoundaryPolyline).

 public class PolylineJig : EntityJig { public PolylineJig(Point3dCollection p3ds) : base(new BoundaryPolyline()) { ... } ... }

 And then add overrule on BoundaryPolyline to change display of it.

Overrule.AddOverrule(RXObject.GetClass(typeof(BoundaryPolyline)), mydrawOverrule, false);

 But when I loaded dll, fired overrule and redraw. All polyline display were changed.

Then I found that 'RXObject.GetClass(typeof(BoundaryPolyline)' was return 'Polyline' but not 'BoundaryPolyline'.

How to overrule on custom object.

View 5 Replies View Related

AutoCad 2D :: How To Save Custom Toolbar

Dec 8, 2011

Example this is my custom toolbar.

And how i can save this and export to another computer... i use autoCAD 2007 .

View 3 Replies View Related

AutoCAD .NET :: Add Custom Properties For Object (for Example Line)?

Aug 7, 2012

I saw that I can add Fields or store data in dictionaty, but those data are not showed in Properties Windows.

In not Acad-application (but .net application) I can create property description and add "virtual" properties with the use of designer. In Aced it doesn't work.

Is it possible to add custom properties from .NET?

View 4 Replies View Related

AutoCAD VB :: Save Custom Menu To Cuix File?

Feb 10, 2013

how can save my custom menu to cuix file after creating it by vba using ThisDrawing.Application.MenuGroups.Item(0) and if i can create new cuix file  "AMRCuix" and every time i will load it.

View 2 Replies View Related

AutoCAD Inventor :: How To Save Out Custom Style To Default Location

Feb 18, 2012

I created a template and changed some style properties. I can not save to master location and when I open the template is tells me it is going to override my custom style.

How do I save out my custom style to the defalut location?

View 1 Replies View Related

AutoCAD Civil 3D :: Custom Rounding And Format Of Object Annotation For Angle

Sep 7, 2013

How do you set an object's annotation, say a line, to display a line's angle or bearing precision to the nearest 20th second.

Kinda like this for decimals:
0.000
0.00
0.0
But for degrees minutes seconds.

Also, I will require the seconds to hide if the nearest 20th second was a 00. I also need a leading zero for minutes if the minutes was under 10 minutes.

View 2 Replies View Related

AutoCAD Civil 3D :: Make Corridor Intersection Object With Custom Subassembly?

Jan 8, 2014

I'm not having any luck on my own.  Can I use subassemblies that I create in subassembly composer to make an intersection using the "CreateIntersection" command? 

View 5 Replies View Related

AutoCAD LT :: Did Save AS To Rename Custom Pulldown - Can Change Source Of Commands

Feb 26, 2013

I didn't like the name of my custom Pulldown that I made:

DSI-Menu.cuix

I Did a Save as:

DSI-Menu_sc.cuix

All the custom Commands list the original DSI-Menu as the source. Can I somehow change that so that the source is DSI-Menu_sc?

View 1 Replies View Related

AutoCAD Inventor :: Batch Save Copy As PDF With A Custom Parameter Filename

May 14, 2012

An application that will let me choose a group of Drawing files (.idw) and perform "Save Copy As" to a PDF format on them. The Filename of each Drawing should be extracted from a custom Parameter I embeded in the IDW file.

I know I can use the Task Manager with a virtual PDF Printer to create these files, but then the PDF Filename will equal the IDW Filename, and I want it to be derived from the custom parameter I prepared inside the drawings.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Show (read / Assign Variables) To Normal Or Custom Properties In Object?

Apr 9, 2012

Looking for Lisp command to show (read/assign variables) to normal or custom properties in an object?

View 7 Replies View Related

Photoshop :: CC Won't Save A Custom Workspace

Jul 23, 2013

PS CC won't save a custom workspace. Nothing happens. In addition, I get a "Can't apply workspace because of a system error" when i try to view the What's New workspace. Just downloaded the CC today. Mac 10.7.5, 3.4 GHz processor, 16GB RAM.

View 3 Replies View Related

Photoshop :: How To Save Custom Profile In CS6

Jan 29, 2013

How do you go about saving a custom color profile in CS6?  Gone is the save button after you have created the custom profile.  In my case I want to save a custom Adobe RGB profile with a gamma of 1.0 instead of the usual 2.2.  I can create it easy enough in the custom dialog box, but haven't figured out how to save it.

View 2 Replies View Related

Illustrator :: How To Save Custom Workspace In CC

Sep 10, 2013

how to save a custom workspace in previous versions does not exist in Illustrator CC. Has this option been reconfigured or simply forgotten? I'm using a Trial Version.

View 13 Replies View Related

Photoshop :: CS6 / Custom Measurement Scale Does Not Save

Jan 27, 2013

in Photoshop Extended (CS6), when I set a custom measurement scale and save/close the file, the scale information is not retained after the file is reopenend. I have experimented with both .psd and .tif files. I used to be able to do this in CS3 without any trouble!

View 2 Replies View Related

Photoshop :: CS6 - Can't Save Custom Keyboard Shortcut?

Mar 26, 2013

I have changed the crop shortcut to ctrl + >, and it works fine until i restart!when i check the shortcut i previously changed, it is now ctrl+&???Why?????I used to have this same shortcuts since cs4.(PS 64bits, latin keyboard)

View 6 Replies View Related

3ds Max :: Save Custom Modifier Sets For Future Use?

Jan 23, 2012

I have never figured out a way to save my customized Modifier Sets. Whenever I have to reinstall Max or we get a new release I lose a lot of customization. I'd like to be able to save every singe interface tweak to make to carry forward to new releases.

3ds Max Design (3D Studio thru Max 2014), ASUS P9X79 Motherboard,
Intel i7-3960x, Hydro H80 CPU Chiller, 32GB DDR3 Ram,
Quadro 4000 Display Adapter

View 9 Replies View Related

Illustrator :: Where Does CS6 Save Custom Created Patterns

Nov 10, 2012

The CS6 pattern maker is a welcome feature. Only problem is, I save a pattern I create and do not have the least idea where illustrator conceals it.

View 2 Replies View Related

Photoshop Elements :: Save A Custom Workspace?

Jul 12, 2013

Using PSE 11, I get the panels set up the way I want, and the background that shows behind the document white like I want, and all is well. Until the comptuer loses it and I have to redo it all over. How can I get it to save my choices for these things? It also lost all my preferences that I set.

View 7 Replies View Related

Photoshop Elements :: How To Save Custom Effects

Aug 5, 2013

I have just created an effect I want to apply to other images. How to I save this effect as a preset, so I can apply this to my other images?

View 10 Replies View Related

3ds Max Animation :: Wire Object Z Position To Custom Attribute

Feb 25, 2011

Im trying to wire an object's Z position to a custom attribute. I've frozen transforms, but whenever i wire the zero euler Z position to the attribute, when i control the attribute, i notice that my object is moving relative to world, and not to its position.

I want to move it along its own Z axis, not world axis.

View 2 Replies View Related







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