User161723582 posted
Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.4926
for Microsoft (R) .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.
h:FieldMobileCode(May-26-2011)FieldMobileAdminComponentDetail.aspx(298,89): error CS1026: ) expected
h:FieldMobileCode(May-26-2011)FieldMobileAdminComponentDetail.aspx(298,89): error CS1026: ) expected
h:FieldMobileCode(May-26-2011)FieldMobileAdminComponentDetail.aspx(298,90): error CS1525: Invalid expression term ‘)’
h:FieldMobileCode(May-26-2011)FieldMobileAdminComponentDetail.aspx(298,90): error CS1525: Invalid expression term ‘)’
Those are the Errors I’m getting. Now here is the related code.
:: The Javascript Code I’m using to show/hide an element when the checkbox is clicked ::
function cbStillInUseChanged() { if(getCheckedValue('ctl00$cphBody$cbStillInUse') == 'true') { hideElement('ctl00$cphBody$ddlEndDateMonth'); hideElement('ct100$cphBody$txtEndDateYear'); } if(getCheckedValue('ct100$cphBody$cbStillInUse') == 'false') { showElement('ctl00$cphBody$ddlEndDateMonth'); showElement('ct100$cphBody$txtEndDateYear'); } } function hideElement(elementID) { document.getElementById(elementID).style.display = 'none'; } function showElement(elementID) { document.getElementById(elementID).style.display = 'inline'; } function getCheckedValue(argElementId) { return document.getElementById(argElementId).checked; }
:: The Related .aspx code that uses the above javascript ::
<asp:CheckBox ID="cbStillInUse" runat="server" OnCheckedChanged="cbStillInUseChanged();" Checked="true" Text="Currently In Use" /> <asp:DropDownList ID="ddlEndDateMonth" style="display:none" runat="server"> <asp:ListItem Text="Jan" Value="1"></asp:ListItem> <asp:ListItem Text="Feb" Value="2"></asp:ListItem> <asp:ListItem Text="Mar" Value="3"></asp:ListItem> <asp:ListItem Text="Apr" Value="4"></asp:ListItem> <asp:ListItem Text="May" Value="5"></asp:ListItem> <asp:ListItem Text="Jun" Value="6"></asp:ListItem> <asp:ListItem Text="Jul" Value="7"></asp:ListItem> <asp:ListItem Text="Aug" Value="8"></asp:ListItem> <asp:ListItem Text="Sep" Value="9"></asp:ListItem> <asp:ListItem Text="Oct" Value="10"></asp:ListItem> <asp:ListItem Text="Nov" Value="11"></asp:ListItem> <asp:ListItem Text="Dec" Value="12"></asp:ListItem> </asp:DropDownList> <asp:TextBox ID="txtEndDateYear" runat="server" style="display:none" Width="40px" MaxLength="4"></asp:TextBox>
Thanks for the help!
VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
-
Back to forum -
Previous -
Next
226 Views, 11 Replies
01-09-2001
04:23 AM
MCAD Pick error
Hi,
I use the following code in Mechanical Desktop
5:
size=2>’===============================================
Dim mapp As
McadApplication
Dim util As
McadUtility
Set mapp =
ThisDrawing.Application.GetInterfaceObject(«Mcad.Application»)
Set util = mapp.ActiveDocument.Utility
Dim Pick As McadPick
Set Pick =
util.Pick(«Select feature», mcFeature)
size=2>’================================================
On the the last line I get the following error
msg.
Generic failure to execute operation with provided
arguments.
The references are set to the appropriate Mcad
objects and on whatever machine I try this it give me the same
message.
Does anybody know what the problem is?
Wouter
-
Back to forum -
Previous -
Next
11 REPLIES 11
01-09-2001
04:42 AM
Wouter
Are you sure you are referencing the right libraries. it should be the 2.0
version of them. Your code below runs without error on my machine.
«Wouter van Eck»
wrote in message
news:F5C5EB25CA49CD3AE153E9C88F515238@in.WebX.SaUCah8kaAW…
> Hi,
>
> I use the following code in Mechanical Desktop 5:
> ‘===============================================
> Dim mapp As McadApplication
> Dim util As McadUtility
> Set mapp =
ThisDrawing.Application.GetInterfaceObject(«Mcad.Application»)
> Set util = mapp.ActiveDocument.Utility
>
> Dim Pick As McadPick
> Set Pick = util.Pick(«Select feature», mcFeature)
> ‘================================================
>
> On the the last line I get the following error msg.
> Generic failure to execute operation with provided arguments.
>
> The references are set to the appropriate Mcad objects and on whatever
machine I try this it give me the same message.
>
> Does anybody know what the problem is?
>
> Wouter
>
>
>
>
>
01-09-2001
04:57 AM
Works for me as well.
Gary
01-09-2001
04:58 AM
I have a reference to:
— Autodesk BrepAuto 2.0 Type Library
— Autodesk GeAuto 2.0 Type Library
— Autodesk McadAuto 2.0 Type Library
— Autodesk SymBBAuto 2.0 Type Library
Should be enough I would say :-)… nothing is
missing…and I get the objects alright but no luck in getting it to
work..
Any ideas?
> Wouter
>
> Are you sure you are referencing the right libraries. it should
be the 2.0
> version of them. Your code below runs without
error on my machine.
>
> «Wouter van Eck» <
href=»mailto:wouter@flyersoft.com»>
size=2>wouter@flyersoft.com> wrote in
message
>
href=»news:F5C5EB25CA49CD3AE153E9C88F515238@in.WebX.SaUCah8kaAW»>
face=Arial
size=2>news:F5C5EB25C…
face=Arial size=2>…
> > Hi,
> >
> > I use the
following code in Mechanical Desktop 5:
> >
‘===============================================
>
> Dim mapp As McadApplication
>
> Dim util As McadUtility
>
> Set mapp =
>
ThisDrawing.Application.GetInterfaceObject(«Mcad.Application»)
>
> Set util = mapp.ActiveDocument.Utility
>
>
> > Dim Pick As McadPick
>
> Set Pick = util.Pick(«Select feature»,
mcFeature)
> >
‘================================================
> >
> > On
the the last line I get the following error msg.
>
>
Generic failure to execute operation with provided arguments.
>
>
> > The references are set to the appropriate Mcad objects and on
whatever
> machine I try this it give me the same message.
>
>
> > Does anybody know what the problem is?
> >
>
> Wouter
> >
> >
> >
> >
>
>
>
01-09-2001
05:21 AM
Wouter
Have you tried isolating just the code you showed in a new module with
nothing else loaded and see if it works? Only other thing I can think of is
I am running SP2 for MDT5.
«Wouter van Eck»
wrote in message
news:1A62CD219E1C9CA96759BD575913D7CD@in.WebX.SaUCah8kaAW…
> I have a reference to:
01-09-2001
06:00 AM
I did that too… it’s running in a new drawing, with a new empty module….
with SP2 aswell… both machines give the same problem…
«Kent Keller»
wrote in message
news:A78B53190E23DA6E4991688464E47CE8@in.WebX.SaUCah8kaAW…
> Wouter
>
> Have you tried isolating just the code you showed in a new module with
> nothing else loaded and see if it works? Only other thing I can think of
is
> I am running SP2 for MDT5.
>
> «Wouter van Eck» wrote in message
> news:1A62CD219E1C9CA96759BD575913D7CD@in.WebX.SaUCah8kaAW…
> > I have a reference to:
>
01-09-2001
05:46 PM
First of all your code sinppet runs fine on my
machine.
You may try the initialization with
Set mapp =
ThisDrawing.Application.GetInterfaceObject(«Mcad.Application.2»)
That should make sure that you get the right
interface for MDT5.
Try to run mcadautoreg.exe, which is in the MDT
directory. This should do the registry entries again. Maybe something went
wrong. Do you have admin writes on your machine ?
Hope ths helps.
Regards,
Christian
style=»BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px»>
Hi,
I use the following code in Mechanical Desktop
5:
size=2>’===============================================Dim mapp As
McadApplication
Dim util As
McadUtility
Set mapp =
ThisDrawing.Application.GetInterfaceObject(«Mcad.Application»)
Set util = mapp.ActiveDocument.Utility
Dim Pick As McadPick
Set Pick =
util.Pick(«Select feature», mcFeature)
size=2>’================================================On the the last line I get the following error
msg.
Generic failure to execute operation with provided
arguments.The references are set to the appropriate Mcad
objects and on whatever machine I try this it give me the same
message.Does anybody know what the problem
is?Wouter
01-09-2001
08:34 PM
Christian
Thanks for the tips. I’ve been having some sort of conflict between newer
and older programs using the two different models. I’ll bet your suggestions
are the answer to the problem.
Gary
01-10-2001
12:48 AM
I just found out that when I start ‘Autocad Mechanical 2000i Power Pack’
then it doesn’t work and a lot of other functions don’t either.
It works fine with AutoCAD Mechanical Desktop…
Wouter
«Gary McMaster»
wrote in message
news:81A2B180FF34465890D102EF030FF737@in.WebX.SaUCah8kaAW…
> Christian
>
> Thanks for the tips. I’ve been having some sort of conflict between newer
> and older programs using the two different models. I’ll bet your
suggestions
> are the answer to the problem.
>
> Gary
>
01-10-2001
02:27 AM
That’s another good point. I didn’t have power pack with MDT4 and have never
tried MDT5 without it.
None of my VBA stuff will run in MDT4 anymore since installing MDT5, but it
still runs fine in MDT5.
Gary
01-10-2001
04:00 AM
That’s because AutoCAD Mechanical and Mechanical Desktop are two
entirely separate products.
—
http://www.acadx.com
All use of the contents of this article is subject to the
terms and conditions at http://www.acadx.com/csc.htm
«Wouter van Eck»
wrote in message
news:64B26D437356584DD429D3898D321C3D@in.WebX.SaUCah8kaAW…
> I just found out that when I start ‘Autocad Mechanical 2000i Power
Pack’
> then it doesn’t work and a lot of other functions don’t either.
>
> It works fine with AutoCAD Mechanical Desktop…
>
> Wouter
01-10-2001
04:18 AM
The MDT4 code is untouched and still referencing the McadAuto 1.0 and the
other 1.0 models. It runs on any MDT4 machine until MDT5 is installed. It
continues running in MDT5 even though still referencing the MDT4 model. Just
seems a little strange.
Gary
-
Back to forum -
Previous -
Next
- Forum
- Rome: Total War & Remastered
- Rome: Total War & Remastered
- Rome: Total War & Remastered Hosted Modifications
- Roma Surrectum
- RSII Technical Help
- Generic Error Msg
Thread: Generic Error Msg
-
February 12, 2012, 08:21 PM
#1
Laetus
I’m currently getting this generic error msg — Building db, unable to find ambient with id ‘wooden_short_wall_straight’. The problem started after I went to the data file and by mistake I highlighted a couple of files and moved them. I tried to undo it in edit and I couldn’t find if anything had changed. I hope there is a fix for this so I don’t have to reload this game again. Thxs.
-
February 14, 2012, 06:22 PM
#2
Re: Generic Error Msg
How can there be a fix for you moving a number of files? We don’t know what files they were or where you moved them to….
The thing that we suggest is to keep a clean working install of R:TW and copy it somewhere else and install RSII onto the copy. If you did that all you would need to do is to delete the corrupted version, re-copy the clean working R:TW and install RSII onto the copy.
Local Forum Moderator (Total War: Eras Technical Help, Shogun 2: Total War, RSII, RTR, World Of Tanks) — please no PMs
War Thunder TWC Player Names: here

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
- BB code is On
- Smilies are On
- [IMG] code is On
- [VIDEO] code is On
- HTML code is Off
Forum Rules