J. Miller
-
Posts
291 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Articles
Marionette
Store
Posts posted by J. Miller
-
-
Is this at all possible?
I have a database called hardware.
In that data base I have a "type" field and a "multiplier" field.
some symbols require more hardware than other but use the same type of hardware (bolt set or clips)
Is there a way to sum the amount of hardware types based on the multiplier in the record.
ex.
count of (4) "bolt sets" with a multiplier field of (1) = 4
count of (2) "bolt sets" with a multiplier field of (4) = 8
count of (2) "clip" with multiplier field of (3) = 6
count of (4) "clip" with multiplier field of (1) = 4
end results
total bolts sets = 12
total clip = 10
if this need to be vectorscripted, i could do that to, just trying to keep this a simple exercise for now
Thanks in advance
Jeff Miller
-
well it seems that once again the user(me) tried to make things too easy. I had been using an older version of "lighting device", probably from VW2009. That was the problem. Funny what you think about when driving home from work (away from the computer) sometimes.
Thanks for all your help
Jeff
-
when i was working on the file exchange yesterday i think i discovered that VW is not updating the .xml file. At least the file time stamp does not change when last updated or saved. When LW loses focus it does make a change in the time stamp. full reconcile does work, just a bit inconvient to have to do that procedure on one computer and not on another. I think the problem lies in VW user setting and preferences. Hopefully i will hear back from Kevin to see what files i should toss.
Jeff
-
thanks Kevin,
just a few quick questions.
Which files hold the preferences and where are they usually found.
I don't want to trash any more than i have to.
Would renaming them also work? then once i see everything has been rebuilt i can destroy the originals.
Jeff
-
What confuses me is that it is the identical file on both machines, both running the same software.
The computer that does not work properly was recently completely replaced with the window 7 computer. The settings for VectorWorks were retrieved from the network (I did not have to reset everything with the new install for VW10. LW was a fresh install). I am wondering if there may be some old setting floating around that I may have to dump. Sure would be nice if it worked.
Jeff
-
I'm am running VW10 SP4 on a win 7 machine.
I can get VW to see the changes LW has made, but not the other way around. LW will not see VW changes unless i check the "perform a complete export on exit" in spotlight preferences. I use 2 different workstation both running the same op systems and software. One computer works fine, but this one won't.
Is there a user setting somewhere that need to be changed or updated?
Thanks In Advance
Jeff Miller
-
Thank you Raymond.
I was close to that, but i had a loop in the case item, that should not have been there. That was casing my havoc.
Once again, over-thinking the problem.
Jeff
-
I have a few less hairs on this on....
Is there a way to determine immediately if a user has
clicked a check box and get its item id, during the run time of a modern dialog?
the check box in question is built at run time so i can not set a specific "case item of", i only know a range on item id of the check box.
Thanks in Advance,
Jeff Miller
-
Hello,
I'm creating a dialog box that builds a group of check boxes and edittext boxes based on a known group of fields from a record.
I don't want to hard codes these items incase i add a new field in my record.
so far the script is working fine except....
i want the user to be able to select a check box
selecting this check box enables the edittext box associated with it and allows the user to enter or edit existing text.
this works fine until i call the 'SelectEditText(dialog1...) procedure.
the script get very confused and almost randomly chooses what it wants to and sometimes nothing at all
without this line the script works fine, but the you have to manually select the edittext box (don't like that, maybe just laziness on my end)
Does anyone know what may be going on here and how i can get this to work as described above?
Thanks in advance
Jeff Miller
VW10
partial code items
CONST
kStartProgStuff = start range of progmatic built items (21)
kmaxFields: = limit of range (20)
VAR
FieldNameArray = array of field name in the record
Dialog items created during run time
progEditText is an Edit tect box
progCheckBox is a check box
assignments to the checkbox & edit text
progEditText = kStartProgStuff
progCheckBox = kStartProgStuff + kmaxFields
PROCEDURE dialog1_Setup; (partial)
BEGIN
dialog1 := CreateResizableLayout(GetStr( 3), True, GetStr(kOK), GetStr(kCancel), TRUE, TRUE);
CreateGroupBox (dialog1, kGroupBox5, GetStr(kGroupBox5), True);
progCheckBox := kstartProgStuff;
progEditText := kstartProgStuff + kmaxFields;
{create the 1st check box and edit box for position)
CreateCheckBox (dialog1, progCheckBox, ' ', FieldNameArray[1]));
CreateEditText (dialog1, progEditText, ' ' , 30);
SetFirstGroupItem (dialog1, kGroupBox5, progCheckBox);
SetRightItem (dialog1, progCheckBox, progEditText, 10, 0);
{Create Check Boxes * Edit Text Fields for Each of the Fields in the Title Block}
FOR i := 1 TO fieldCount - 1 DO BEGIN
CreateCheckBox (dialog1, progCheckBox + i, FieldNameArray[i +1]));
CreateEditText (dialog1, progEditText + i , 30);
SetBelowItem (dialog1, progcheckBox + i -1 ,progCheckBox + i, 0,3 );
SetBelowItem (dialog1, progEditText + i -1, progEditText + i, 0, 0);
END;
END;
PROCEDURE dialog1_Handler(VAR item :LONGINT; data :LONGINT); (partial)
BEGIN
CASE item OF
SetupDialogC:
BEGIN
kstartProgStuff..kstartprogStuff + kmaxFields:
BEGIN
progCheckBox := kStartProgStuff;
progEditText := kstartProgStuff + kmaxFields;
FOR i := 0 to kMaxFields - 1 DO BEGIN
IF (ItemSel(progCheckBox + i)) THEN BEGIN
EnableItem(dialog1, progEditText +i, TRUE);
SelectEditText(dialog1, progEditText +i); <<<<<<<< ISSUE LINE works fine without this call >>>>>>>>
END;
END;
-
I was experimenting with a little vectorscript today and noticed that if one attempts to export a nurbs surface it does not translate. Nothing is created in the "Creation Code" block of the script. Am I doing something wrong or does vectorscript translation not understand nurbs surfaces?
Thanks in Advance
Jeff Miller
VW2010 Designer
Win 7
-
Hey Matt,
So I assume that is a yes it will run....
Thanks for the info.
It was one of the last chunks of software I was concerned about.
Hopefully I'm going to upgrade over the weekend to Win 7.
It can't be any worse than Vista... I guess.... I hope
Jeff
-
Hello,
This isn't quite a Spotlight question.
Does anyone know if LW4 will run on Windows 7.
I checked John Mckernon's site but didn't see anything.
Thanks in Advance
Jeff miller
-
I have heard the VW2010 will run in windows 7.
My copy of 7 is in the mail right now... I hope it works.
Jeff Miller
-
Thanks for the reply Raymond.
The next time i have a few hours to kill I will experiment with that. I do know that ID numbers can't be higher than 600 in VW2010 as opposed to VW2009. I guess it was changed in VW2010.
Jeff
-
I have been using Vectorworks 2010 for a few days now, and really like the the ability to set an object to the screen or layer plane. It would be nice if an option was in the edit class dialog to force a class to screen, layer or none plane, much like the opacity bar was created a few versions ago. Now that I have this option I find that I want certain things to be one way or another, and having that class choice would be great.
Jeff Miller
-
I have a modern dialog that builds a group of check boxes based on information in the drawing. I arbitrarily started these check boxes at 601 and built from there.
In VW2009 this worked flawlessly , but in 2010 it became broken.
Poking around with the code i change the starting number to 201 for the check boxes. This edit fixed the problem.
Are there new rules in VW2010 limiting the counts to a modern dialog, or is this just an oddity?
Thanks in Advance
Jeff Miller
-
Hello,
Maybe i have dome something wrong.
I downloaded the files and i think i put them in there proper place. i see the language choice for vectorscript, but when i select it only shows green text for my scripts. I sure would love to have this working. What could i have done wrong? Any clues???
I think it may be putting on of the files in the wrong place.
Thanks in Advance
Jeff Miller
Windows XP SP3
VW2009 SP4
-
hello,
What I was hoping to do was to add a button next to the "OK" & "Cancel" buttons and not in the actual custom dialog area.
Jeff miller
-
Thank you Miguel.
That works great.
This is my 1st script working with viewports and I have not quite figured out all the calls i can use yet.
maybe you would also know if it is possible to add a 3rd button to a custom dialog layout
"OK", "Cancel", "My Choice"
Thanks Again,
Jeff
-
Hello,
I am trying to create a custom view in a viewport.
I know the rotation i want to set
I have sucessfully made views using
"SetObjectVariableInt(vpHan, 1007, 4);" (Back View)
How does one go about setting a custom rotation of a viewport pragmatically?
I find it odd that the views (1007) do not correspond to the standard view numbers for the front, right, back & left views.
Top & Top/Plan views are correct.
Thanks in Advance
Jeff Miller
-
Thank you (esp Andrew) for all who help with this little project that turned into a 4+ weekend project. I have my PIO working to a point that is satisfactory (for now). I need to continue refinement on it especially with the vso calls, but i feel that is going to take a LOT more homework and study.
I never did find the event list in the SDK.
The vso call are quite powerful, but as i was warned they can be very complex.
Funny how a small idea can CONSUME so much time, but heck isn't that why we create scripts anyway... to save time.
I do believe that working with textures is probably the toughest thing I have done with vector script.
Thanks Again
Jeff Miller
I'm sure i will be back for more assistance in the near future
-
Is there a list of Events that the vso call or use and their associated numbers posted somewhere?
Thanks in Advance
Jeff
-
One More Time....
Is there a way to re-populate the pop-up upon Selection of the PIO if there have been name changes or additions to the resource list?
Jeff
-
Andrew,
That rocks!
I'm not a brain scientist or rocket surgeon, but I did get my pop up to populate. Took a lot of trail and error with all the new vso calls, but i do believe it's going to work the way i want it to.
Now it's just going back to clean it up and and add the user traps to it. Thanks so much for the insight on the vso calls.
I see a lot of potential to them, but they do seem to also open up a very LARGE can (more like a 55 gallon drum) of worms.
Jeff Miller
Vector Script School Site Maybe?.
in Vectorscript
Posted
Years ago VW back then it was mini cad held a seminar on vectorscript, that i attended. It was quite interesting, but the level of knowledge including basic programming techniques of those who attended somewhat limited the course to a general overview.
The "i no nothing" to "i know a little" to "i know a lot" process should be used if this site is ever developed. Basic programming structures should also be Incorporated into the site to help the beginners. I took some programming courses in Visual Basic & C at the local community college to understand logic better. These courses greatly enhanced my ability to write vectorscript. From there it was just the syntax of vectorscript that i needed to learn. Mini Cad 7 actually had a programming manual that came with the software bundle, It is still within arms reach today. I look forward to seeing one site that would incorporate all of this information.
Jeff Miller