Jump to content

Hippocode

Member
  • Posts

    796
  • Joined

  • Last visited

Everything posted by Hippocode

  1. Confirm that your debug/release output is set into the plug-ins folder. Go look into that folder to see if those files are created. Make sure you know in which category you will find these plug-ins. I think most of them are to be found in "samples SDK" or something. You are using the correct platform right ? x32 or x64 ? If none of those work out, it might be an error you created in one of the files making the module failing to load properly. I had this once. If you can't find it start again from a clean sample.
  2. Hi, We moved to a mac and obviously the characters created with chr() need to be reconfigured. I couldn't find any result for a superscript 2. How do I create it on OsX?
  3. The thing that disturbs me to most on OsX is that when you focus on another program, everything besides the vectorworks main window will disappear. I can not edit a Word file while looking at a Vectorworks worksheet. This is possible on Windows.
  4. Hi Kevin, June first I'll announce my website containing custom Vectorworks2015 plug-ins. You will be very interested in the revision manager. It is a separate dialog that allows you to control all revision and issue data. Some of the key features that extend the default behaviour: You can add/edit revisions/issues on multiple drawingborders at once. You can assign the last revision letter/number + date to titleblock fields as you request. You can control the date string giving you a lot of options. You can use the global mode which only keeps one set of data used on all drawingborders. The following image is a screenshot of how the dialog looks like.
  5. This will only work within an ammount of time after creating the post. The button will disappear
  6. First of all, SetCustomObjectProfileGroup needs the handle of the object, not the active profilegroup of that object. Secondly, reset the object once you are done changing the profile group to make sure the object uses the new profile.
  7. I think you can change the filename in explorer. Vectorworks will still recognize it with the old name internally.
  8. I still think you need to code your convert script in a seperate menu command. When you change the parametric record of your plug-in Vectorworks will disable the info palette of the plug-ins containing the old parametric record. I don't think these can be reset again so they might need some external help to match the new parametric record. This doesn't happen on each field change, not sure what exactly triggers it. Adding a field won't do harm I guess, changing the fieldtype might be.
  9. I think the closest you can get is to create a menu that can update old versions of your plug-ins in the active drawing.
  10. http://developer.vectorworks.net/index.php/VS:SetCustomObjectProfileGroup Note that when you use the other function to retrieve the profile it might not work if no profile was set. Atleast that's how it behaves on the SDK.
  11. See the line as a vector. VS has a datatype VECTOR and some appropriate functions to do the following: Assign a vector parameter. Get the unitvector and distance. you can now find any point on that line.
  12. It's all about math. Just calculate the position you need each circle or whatever content to be relative within your rectangle. You can create each circle on the exact spot or create them at 0,0 and move them to each position whichever you like.
  13. Honestly I'd skip the dialog and make it a simple rectangular plug-in instead. Why ? - It's regenerative, if you change your mind you can edit it at the fly. Now you need to delete your content and reload the dialog. - The width / length is handled by the rectangular object, the other data can be parameters editable in the oip
  14. C) Create a script that loops trough all your symbol definitions. Make a count for each of them and print it out to a worksheet.
  15. Depending on your time and vs knowledge the easy way is to write a script that does the numbering. downside is that you need to run the script. If you have some more time and it's only needed on symbols you should create a custom object that places a symbol in the drawing. the object can automatically take care of the numbering, no scripts needed = less errors.
  16. There are many ways to accomplish this, It all depends on what the purpose of this polygon might be.. You could create a custom tool/menu command: - There is a command that picks a point the user clicks, not sure if it can handle 3D - You can use the predefined simple dialogs that return a string, double.. - You can create your own dialog that handles all points at once. You could create a custom object: - You can create a pio that has all these points as parameters. The advantage here is that the user can move the points in 2D if you use controlpoints.
  17. http://developer.vectorworks.net/index.php/VS:Parametric_Custom_Shape_Pane_Popup
  18. if that's the case just use VALUE(stringvalue) to use it as a number.
  19. This part is unsafe: SetRField(ChildSymbol, 'MyRecord', 'MyName', GetRField(ParentSymbol, 'MyRecord', 'MyName')); As you don't check if the handle is valid. Also, remember that when you do change these fields, ALL symbols in the drawing will have the same change. You can't have unique values in subparts of a symbol.
  20. You can create some parameters for objects. One of them is a controlpoint the user can move to position something. If you can create one symbol that combines both yes you have an easy solution.
  21. You can't do this unless you create a custom object. Go to the linked topic to see why.
  22. Yes and no, I see I made a mistake in my first assumption so it won't be that easy. To clarify: Symbol A has record X attached, Symbol A contains a symbol B which also has record X attached. Symbol C has record X attached but has no subsymbols. The problem is that symbol A is unique, if we change the contents of it all instances will change. Thus we can't change the fields of the subsymbol B! I think there are 2 ways to solve this: Your object would be a very simple point object that places a symbol © and another symbol (B). The object will copy it's data into both symbols for the shared records. You can create 2 controlpoints to position them or you can create a special tag in symbol C to set the position for symbol B. Your object would be a point object that places a symbol (A) the user can choose. As earlier mentioned the contents of symbol A can't be changed, but we can explode it. By exploding it you might loose some text fields bound to record fields but that can be fixed. You now have a symbol B that's not unique anymore, you can copy the recordfield data. In both cases we can't directly let the user edit the recordfields of the symbol. What you can do is attach the same kind of record instances to the object and copy them into the symbol. Honestly I'd go for the first option. This is the easiest way and it isn't hard to code it so it can work with any symbol. Your object just has to search common record instances between the 2 symbols and use those.
  23. Actually, feeding BuildResourceList a folder index of "0" will build a list of resources in just the current document. A negative index will build a list from just an external folder. A positive index will build a list based on both the current document and an external folder. What I ment is that you can only retrieve the name of these resources IF they come from external files. There is no way to retrieve the filename or the symbol folder. When the resource is from the active file you can get the symbol folder.
  24. A recordinstance can only be attached to one object. Text can only be connected to it's parent object record fields. You can write a script that copies your values into the same record of an other symbol. If you need this a lot you might consider it making an object instead. This way you don't 'forget' to update the data and it will be always correct.
  25. Hi, This is something a lot of users have requested in the past but sadly the buildresourcelist only gives you the names of these symbols if coming from an external resource. This means that you can only add them to one Listbrowserfolder if you want to create something like the example you mentioned. I'm soon going to launch a website with some tools and functions. One will be a vectorscript function to create a simple ChooseSymbolDialog without the need of all the knownledge and code. The example I posted doesn't work perfectly but this one will, it's created with the sdk instead. I do know of a workaround for you by creating a dynamic array of resourcelists. What you can do is start in a certain folder and use the appropriate functions to list all folders and subfolders. If you'd create a resource list for each folder you can separate them by filename. Some coding to do there...
×
×
  • Create New...